aboutsummaryrefslogtreecommitdiff
path: root/node_modules/istanbul-lib-report
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/istanbul-lib-report')
-rw-r--r--node_modules/istanbul-lib-report/CHANGELOG.md68
-rw-r--r--node_modules/istanbul-lib-report/LICENSE24
-rw-r--r--node_modules/istanbul-lib-report/README.md8
-rw-r--r--node_modules/istanbul-lib-report/index.js58
-rw-r--r--node_modules/istanbul-lib-report/lib/context.js122
-rw-r--r--node_modules/istanbul-lib-report/lib/file-writer.js185
-rw-r--r--node_modules/istanbul-lib-report/lib/path.js161
-rw-r--r--node_modules/istanbul-lib-report/lib/summarizer.js284
-rw-r--r--node_modules/istanbul-lib-report/lib/tree.js167
-rw-r--r--node_modules/istanbul-lib-report/lib/watermarks.js14
-rw-r--r--node_modules/istanbul-lib-report/lib/xml-writer.js87
l---------node_modules/istanbul-lib-report/node_modules/.bin/mkdirp1
-rw-r--r--node_modules/istanbul-lib-report/node_modules/has-flag/index.js10
-rw-r--r--node_modules/istanbul-lib-report/node_modules/has-flag/license21
-rw-r--r--node_modules/istanbul-lib-report/node_modules/has-flag/package.json48
-rw-r--r--node_modules/istanbul-lib-report/node_modules/has-flag/readme.md64
-rw-r--r--node_modules/istanbul-lib-report/node_modules/supports-color/browser.js2
-rw-r--r--node_modules/istanbul-lib-report/node_modules/supports-color/index.js84
-rw-r--r--node_modules/istanbul-lib-report/node_modules/supports-color/license21
-rw-r--r--node_modules/istanbul-lib-report/node_modules/supports-color/package.json66
-rw-r--r--node_modules/istanbul-lib-report/node_modules/supports-color/readme.md60
-rw-r--r--node_modules/istanbul-lib-report/package.json43
22 files changed, 0 insertions, 1598 deletions
diff --git a/node_modules/istanbul-lib-report/CHANGELOG.md b/node_modules/istanbul-lib-report/CHANGELOG.md
deleted file mode 100644
index 4520c91a7..000000000
--- a/node_modules/istanbul-lib-report/CHANGELOG.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
-
-<a name="1.1.5"></a>
-## [1.1.5](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-report@1.1.3...istanbul-lib-report@1.1.5) (2018-09-05)
-
-
-### Bug Fixes
-
-* Tweak package.json files for republish as latest 1.x. ([#217](https://github.com/istanbuljs/istanbuljs/issues/217)) ([420481d](https://github.com/istanbuljs/istanbuljs/commit/420481d)), closes [#216](https://github.com/istanbuljs/istanbuljs/issues/216)
-
-
-### BREAKING CHANGES
-
-* leaked into 1.x modules but it was thought they were
-never released to latest. Apparently releasing 2.x to latest makes
-those unwanted versions of 1.x available.
-
-This patch sets all modules to the latest 1.x version (4.x for
-test-exclude). This will allow a new release to be made to revert
-release of the breaking changes.
-
-Stop upgrading npm to latest for testing as it's not compatible with
-node 4.x.
-
-
-
-
-<a name="1.1.3"></a>
-## [1.1.3](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-report@1.1.2...istanbul-lib-report@1.1.3) (2018-02-13)
-
-
-
-
-**Note:** Version bump only for package istanbul-lib-report
-
-<a name="1.1.2"></a>
-## [1.1.2](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-report@1.1.1...istanbul-lib-report@1.1.2) (2017-10-21)
-
-
-### Bug Fixes
-
-* remove call to mkdirp.sync() in constructor so when used for ConsoleWriter ([#104](https://github.com/istanbuljs/istanbuljs/issues/104)) ([58eb79d](https://github.com/istanbuljs/istanbuljs/commit/58eb79d))
-
-
-
-
-<a name="1.1.1"></a>
-## [1.1.1](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-report@1.1.0...istanbul-lib-report@1.1.1) (2017-05-27)
-
-
-
-
-<a name="1.1.0"></a>
-# [1.1.0](https://github.com/istanbuljs/istanbul-lib-report/compare/istanbul-lib-report@1.0.0...istanbul-lib-report@1.1.0) (2017-04-29)
-
-
-### Features
-
-* once 100% line coverage is achieved, missing branch coverage is now shown in text report ([#45](https://github.com/istanbuljs/istanbuljs/issues/45)) ([8a809f8](https://github.com/istanbuljs/istanbul-lib-report/commit/8a809f8))
-
-
-
-
-<a name="1.0.0"></a>
-# [1.0.0](https://github.com/istanbuljs/istanbul-lib-report/compare/istanbul-lib-report@1.0.0-alpha.3...istanbul-lib-report@1.0.0) (2017-03-27)
diff --git a/node_modules/istanbul-lib-report/LICENSE b/node_modules/istanbul-lib-report/LICENSE
deleted file mode 100644
index d55d2916e..000000000
--- a/node_modules/istanbul-lib-report/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-Copyright 2012-2015 Yahoo! Inc.
-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 Yahoo! 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 YAHOO! INC. 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/istanbul-lib-report/README.md b/node_modules/istanbul-lib-report/README.md
deleted file mode 100644
index d3f9a044b..000000000
--- a/node_modules/istanbul-lib-report/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-istanbul-lib-report
-===================
-
-[![Greenkeeper badge](https://badges.greenkeeper.io/istanbuljs/istanbul-lib-report.svg)](https://greenkeeper.io/)
-[![Build Status](https://travis-ci.org/istanbuljs/istanbul-lib-report.svg?branch=master)](https://travis-ci.org/istanbuljs/istanbul-lib-report)
-
-Core reporting utilities for istanbul. Docs to follow.
-
diff --git a/node_modules/istanbul-lib-report/index.js b/node_modules/istanbul-lib-report/index.js
deleted file mode 100644
index 87a8a22b6..000000000
--- a/node_modules/istanbul-lib-report/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-"use strict";
-
-/**
- * @module Exports
- */
-
-var summarizer = require('./lib/summarizer'),
- context = require('./lib/context'),
- watermarks = require('./lib/watermarks');
-
-module.exports = {
- /**
- * returns a reporting context for the supplied options
- * @param {Object} [opts=null] opts
- * @returns {Context}
- */
- createContext: function (opts) {
- return context.create(opts);
- },
- /**
- * returns the default watermarks that would be used when not
- * overridden
- * @returns {Object} an object with `statements`, `functions`, `branches`,
- * and `line` keys. Each value is a 2 element array that has the low and
- * high watermark as percentages.
- */
- getDefaultWatermarks: function () {
- return watermarks.getDefault();
- }
-};
-/**
- * standard summary functions
- */
-module.exports.summarizers = {
- /**
- * a summarizer that creates a flat tree with one root node and bunch of
- * files directly under it
- */
- flat: summarizer.createFlatSummary,
- /**
- * a summarizer that creates a hierarchical tree where the coverage summaries
- * of each directly reflect the summaries of all subdirectories and files in it
- */
- nested: summarizer.createNestedSummary,
- /**
- * a summarizer that creates a tree in which directories are not nested.
- * Every subdirectory is a child of the root node and only reflects the
- * coverage numbers for the files in it (i.e. excludes subdirectories).
- * This is the default summarizer.
- */
- pkg: summarizer.createPackageSummary
-};
-
-
diff --git a/node_modules/istanbul-lib-report/lib/context.js b/node_modules/istanbul-lib-report/lib/context.js
deleted file mode 100644
index 034a2b107..000000000
--- a/node_modules/istanbul-lib-report/lib/context.js
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-var FileWriter = require('./file-writer'),
- XMLWriter = require('./xml-writer'),
- tree = require('./tree'),
- watermarks = require('./watermarks'),
- fs = require('fs');
-
-function defaultSourceLookup(path) {
- try {
- return fs.readFileSync(path, 'utf8');
- } catch (ex) {
- throw new Error('Unable to lookup source: ' + path + '(' + ex.message + ')');
- }
-}
-
-function mergeWatermarks(specified, defaults) {
- specified = specified || {};
- Object.keys(defaults).forEach(function (k) {
- var specValue = specified[k];
- if (!(specValue && Array.isArray(specValue) && specValue.length === 2)) {
- specified[k] = defaults[k];
- }
- });
- return specified;
-}
-/**
- * A reporting context that is passed to report implementations
- * @param {Object} [opts=null] opts options
- * @param {String} [opts.dir='coverage'] opts.dir the reporting directory
- * @param {Object} [opts.watermarks=null] opts.watermarks watermarks for
- * statements, lines, branches and functions
- * @param {Function} [opts.sourceFinder=fsLookup] opts.sourceFinder a
- * function that returns source code given a file path. Defaults to
- * filesystem lookups based on path.
- * @constructor
- */
-function Context(opts) {
- opts = opts || {};
- this.dir = opts.dir || 'coverage';
- this.watermarks = mergeWatermarks(opts.watermarks, watermarks.getDefault());
- this.sourceFinder = opts.sourceFinder || defaultSourceLookup;
- this.data = {};
-}
-
-Object.defineProperty(Context.prototype, 'writer', {
- enumerable: true,
- get: function () {
- if (!this.data.writer) {
- this.data.writer = new FileWriter(this.dir);
- }
- return this.data.writer;
- }
-});
-
-/**
- * returns a FileWriter implementation for reporting use. Also available
- * as the `writer` property on the context.
- * @returns {Writer}
- */
-Context.prototype.getWriter = function () {
- return this.writer;
-};
-
-/**
- * returns the source code for the specified file path or throws if
- * the source could not be found.
- * @param {String} filePath the file path as found in a file coverage object
- * @returns {String} the source code
- */
-Context.prototype.getSource = function (filePath) {
- return this.sourceFinder(filePath);
-};
-
-/**
- * returns the coverage class given a coverage
- * types and a percentage value.
- * @param {String} type - the coverage type, one of `statements`, `functions`,
- * `branches`, or `lines`
- * @param {Number} value - the percentage value
- * @returns {String} one of `high`, `medium` or `low`
- */
-Context.prototype.classForPercent = function (type, value) {
- var watermarks = this.watermarks[type];
- if (!watermarks) {
- return 'unknown';
- }
- if (value < watermarks[0]) {
- return 'low';
- }
- if (value >= watermarks[1]) {
- return 'high';
- }
- return 'medium';
-};
-/**
- * returns an XML writer for the supplied content writer
- * @param {ContentWriter} contentWriter the content writer to which the returned XML writer
- * writes data
- * @returns {XMLWriter}
- */
-Context.prototype.getXMLWriter = function (contentWriter) {
- return new XMLWriter(contentWriter);
-};
-/**
- * returns a full visitor given a partial one.
- * @param {Object} partialVisitor a partial visitor only having the functions of
- * interest to the caller. These functions are called with a scope that is the
- * supplied object.
- * @returns {Visitor}
- */
-Context.prototype.getVisitor = function (partialVisitor) {
- return new tree.Visitor(partialVisitor);
-};
-
-module.exports = {
- create: function (opts) {
- return new Context(opts);
- }
-};
diff --git a/node_modules/istanbul-lib-report/lib/file-writer.js b/node_modules/istanbul-lib-report/lib/file-writer.js
deleted file mode 100644
index 8db627adf..000000000
--- a/node_modules/istanbul-lib-report/lib/file-writer.js
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-var util = require('util'),
- path = require('path'),
- fs = require('fs'),
- mkdirp = require('mkdirp'),
- supportsColor = require('supports-color'),
- isAbsolute = path.isAbsolute || /* istanbul ignore next */ function (p) {
- return path.resolve(p) === path.normalize(p);
- };
-
-/**
- * abstract interface for writing content
- * @class ContentWriter
- * @constructor
- */
-/* istanbul ignore next: abstract class */
-function ContentWriter() {
-}
-
-/**
- * writes a string as-is to the destination
- * @param {String} str the string to write
- */
-/* istanbul ignore next: abstract class */
-ContentWriter.prototype.write = function () {
- throw new Error('write: must be overridden');
-};
-
-/**
- * returns the colorized version of a string. Typically,
- * content writers that write to files will return the
- * same string and ones writing to a tty will wrap it in
- * appropriate escape sequences.
- * @param {String} str the string to colorize
- * @param {String} clazz one of `high`, `medium` or `low`
- * @returns {String} the colorized form of the string
- */
-ContentWriter.prototype.colorize = function (str /*, clazz*/) {
- return str;
-};
-
-/**
- * writes a string appended with a newline to the destination
- * @param {String} str the string to write
- */
-ContentWriter.prototype.println = function (str) {
- this.write(str + '\n');
-};
-
-/**
- * closes this content writer. Should be called after all writes are complete.
- */
-ContentWriter.prototype.close = function () {
-};
-
-/**
- * a content writer that writes to a file
- * @param {Number} fd - the file descriptor
- * @extends ContentWriter
- * @constructor
- */
-function FileContentWriter(fd) {
- this.fd = fd;
-}
-util.inherits(FileContentWriter, ContentWriter);
-
-FileContentWriter.prototype.write = function (str) {
- fs.writeSync(this.fd, str);
-};
-
-FileContentWriter.prototype.close = function () {
- fs.closeSync(this.fd);
-};
-
-/**
- * a content writer that writes to the console
- * @extends ContentWriter
- * @constructor
- */
-function ConsoleWriter() {
-}
-util.inherits(ConsoleWriter, ContentWriter);
-
-// allow stdout to be captured for tests.
-var capture = false;
-var output = '';
-ConsoleWriter.prototype.write = function (str) {
- if (capture) {
- output += str;
- } else {
- process.stdout.write(str);
- }
-};
-
-ConsoleWriter.prototype.colorize = function (str, clazz) {
- var colors = {
- low: '31;1',
- medium: '33;1',
- high: '32;1'
- };
-
- /* istanbul ignore next: different modes for CI and local */
- if (supportsColor && colors[clazz]) {
- return '\u001b[' + colors[clazz] + 'm' + str + '\u001b[0m';
- }
- return str;
-};
-
-/**
- * utility for writing files under a specific directory
- * @class FileWriter
- * @param {String} baseDir the base directory under which files should be written
- * @constructor
- */
-function FileWriter(baseDir) {
- if (!baseDir) {
- throw new Error('baseDir must be specified');
- }
- this.baseDir = baseDir;
-}
-
-/**
-* static helpers for capturing stdout report output;
-* super useful for tests!
-*/
-FileWriter.startCapture = function () {
- capture = true;
-};
-FileWriter.stopCapture = function () {
- capture = false;
-};
-FileWriter.getOutput = function () {
- return output;
-};
-FileWriter.resetOutput = function () {
- output = '';
-};
-
-/**
- * returns a FileWriter that is rooted at the supplied subdirectory
- * @param {String} subdir the subdirectory under which to root the
- * returned FileWriter
- * @returns {FileWriter}
- */
-FileWriter.prototype.writerForDir = function (subdir) {
- if (isAbsolute(subdir)) {
- throw new Error('Cannot create subdir writer for absolute path: ' + subdir);
- }
- return new FileWriter(this.baseDir + '/' + subdir);
-};
-/**
- * copies a file from a source directory to a destination name
- * @param {String} source path to source file
- * @param {String} dest relative path to destination file
- */
-FileWriter.prototype.copyFile = function (source, dest) {
- if (isAbsolute(dest)) {
- throw new Error('Cannot write to absolute path: ' + dest);
- }
- dest = path.resolve(this.baseDir, dest);
- mkdirp.sync(path.dirname(dest));
- fs.writeFileSync(dest, fs.readFileSync(source));
-};
-/**
- * returns a content writer for writing content to the supplied file.
- * @param {String|null} file the relative path to the file or the special
- * values `"-"` or `null` for writing to the console
- * @returns {ContentWriter}
- */
-FileWriter.prototype.writeFile = function (file) {
- if (file === null || file === '-') {
- return new ConsoleWriter();
- }
- if (isAbsolute(file)) {
- throw new Error('Cannot write to absolute path: ' + file);
- }
- file = path.resolve(this.baseDir, file);
- mkdirp.sync(path.dirname(file));
- return new FileContentWriter(fs.openSync(file, 'w'));
-};
-
-module.exports = FileWriter;
diff --git a/node_modules/istanbul-lib-report/lib/path.js b/node_modules/istanbul-lib-report/lib/path.js
deleted file mode 100644
index 9d97e15e3..000000000
--- a/node_modules/istanbul-lib-report/lib/path.js
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-"use strict";
-
-var path = require('path'),
- parsePath = require('path-parse'),
- SEP = path.sep || /* istanbul ignore next */ '/',
- origParser = parsePath,
- origSep = SEP;
-
-function makeRelativeNormalizedPath(str, sep) {
- var parsed = parsePath(str),
- root = parsed.root,
- dir,
- file = parsed.base,
- quoted,
- pos;
-
- // handle a weird windows case separately
- if (sep === '\\') {
- pos = root.indexOf(':\\');
- if (pos >= 0) {
- root = root.substring(0, pos + 2);
- }
- }
- dir = parsed.dir.substring(root.length);
-
- if (str === '') {
- return [];
- }
-
- if (sep !== '/') {
- quoted = new RegExp(sep.replace(/\W/g, '\\$&'), 'g');
- dir = dir.replace(quoted, '/');
- file = file.replace(quoted, '/'); // excessively paranoid?
- }
-
- if (dir !== '') {
- dir = dir + '/' + file;
- } else {
- dir = file;
- }
- if (dir.substring(0,1) === '/') {
- dir = dir.substring(1);
- }
- dir = dir.split(/\/+/);
- return dir;
-}
-
-function Path(strOrArray) {
- if (Array.isArray(strOrArray)) {
- this.v = strOrArray;
- } else if (typeof strOrArray === "string") {
- this.v = makeRelativeNormalizedPath(strOrArray, SEP);
- } else {
- throw new Error('Invalid Path argument must be string or array:' + strOrArray);
- }
-}
-
-Path.prototype.toString = function () {
- return this.v.join('/');
-};
-
-Path.prototype.hasParent = function () {
- return this.v.length > 0;
-};
-
-Path.prototype.parent = function () {
- if (!this.hasParent()) {
- throw new Error('Unable to get parent for 0 elem path');
- }
- var p = this.v.slice();
- p.pop();
- return new Path(p);
-};
-
-Path.prototype.elements = function () {
- return this.v.slice();
-};
-
-Path.prototype.contains = function (other) {
- var i;
- if (other.length > this.length) {
- return false;
- }
- for (i = 0; i < other.length; i += 1) {
- if (this.v[i] !== other.v[i]) {
- return false;
- }
- }
- return true;
-};
-
-Path.prototype.ancestorOf = function (other) {
- return other.contains(this) && other.length !== this.length;
-};
-
-Path.prototype.descendantOf = function (other) {
- return this.contains(other) && other.length !== this.length;
-};
-
-Path.prototype.commonPrefixPath = function (other) {
- var len = this.length > other.length ? other.length : this.length,
- i,
- ret = [];
-
- for (i = 0; i < len; i +=1 ) {
- if (this.v[i] === other.v[i]) {
- ret.push(this.v[i]);
- } else {
- break;
- }
- }
- return new Path(ret);
-};
-
-['push', 'pop', 'shift', 'unshift', 'splice'].forEach(function (f) {
- Path.prototype[f] = function () {
- var args = Array.prototype.slice.call(arguments),
- v = this.v;
- return v[f].apply(v, args);
- };
-});
-
-Path.compare = function (a, b) {
- var al = a.length,
- bl = b.length,
- astr,
- bstr;
- if (al < bl) {
- return -1;
- }
- if (al > bl) {
- return 1;
- }
- astr = a.toString();
- bstr = b.toString();
- return astr < bstr ? -1 : astr > bstr ? 1 : 0;
-};
-
-Object.defineProperty(Path.prototype, 'length', {
- enumerable: true,
- get: function () {
- return this.v.length;
- }
-});
-
-module.exports = Path;
-Path.tester = {
- setParserAndSep: function (p, sep) {
- parsePath = p;
- SEP = sep;
- },
- reset: function () {
- parsePath = origParser;
- SEP = origSep;
- }
-};
-
diff --git a/node_modules/istanbul-lib-report/lib/summarizer.js b/node_modules/istanbul-lib-report/lib/summarizer.js
deleted file mode 100644
index ee353b317..000000000
--- a/node_modules/istanbul-lib-report/lib/summarizer.js
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-"use strict";
-
-var Path = require('./path'),
- util = require('util'),
- tree = require('./tree'),
- coverage = require('istanbul-lib-coverage'),
- BaseNode = tree.Node,
- BaseTree = tree.Tree;
-
-function ReportNode(path, fileCoverage) {
- this.path = path;
- this.parent = null;
- this.fileCoverage = fileCoverage;
- this.children = [];
-}
-
-util.inherits(ReportNode, BaseNode);
-
-ReportNode.prototype.addChild = function (child) {
- child.parent = this;
- this.children.push(child);
-};
-
-ReportNode.prototype.asRelative = function (p) {
- /* istanbul ignore if */
- if (p.substring(0,1) === '/') {
- return p.substring(1);
- }
- return p;
-};
-
-ReportNode.prototype.getQualifiedName = function () {
- return this.asRelative(this.path.toString());
-};
-
-ReportNode.prototype.getRelativeName = function () {
- var parent = this.getParent(),
- myPath = this.path,
- relPath,
- i,
- parentPath = parent ? parent.path : new Path([]);
- if (parentPath.ancestorOf(myPath)) {
- relPath = new Path(myPath.elements());
- for (i = 0; i < parentPath.length; i += 1) {
- relPath.shift();
- }
- return this.asRelative(relPath.toString());
- }
- return this.asRelative(this.path.toString());
-};
-
-ReportNode.prototype.getParent = function () {
- return this.parent;
-};
-
-ReportNode.prototype.getChildren = function () {
- return this.children;
-};
-
-ReportNode.prototype.isSummary = function () {
- return !this.fileCoverage;
-};
-
-ReportNode.prototype.getFileCoverage = function () {
- return this.fileCoverage;
-};
-
-ReportNode.prototype.getCoverageSummary = function (filesOnly) {
- var cacheProp = 'c_' + (filesOnly ? 'files' : 'full'),
- summary;
-
- if (this.hasOwnProperty(cacheProp)) {
- return this[cacheProp];
- }
-
- if (!this.isSummary()) {
- summary = this.getFileCoverage().toSummary();
- } else {
- var count = 0;
- summary = coverage.createCoverageSummary();
- this.getChildren().forEach(function (child) {
- if (filesOnly && child.isSummary()) {
- return;
- }
- count += 1;
- summary.merge(child.getCoverageSummary(filesOnly));
- });
- if (count === 0 && filesOnly) {
- summary = null;
- }
- }
- this[cacheProp] = summary;
- return summary;
-};
-
-function treeFor(root, childPrefix) {
- var tree = new BaseTree(),
- visitor,
- maybePrefix = function (node) {
- if (childPrefix && !node.isRoot()) {
- node.path.unshift(childPrefix);
- }
- };
- tree.getRoot = function () {
- return root;
- };
- visitor = {
- onDetail: function (node) {
- maybePrefix(node);
- },
- onSummary: function (node) {
- maybePrefix(node);
- node.children.sort(function (a, b) {
- var astr = a.path.toString(),
- bstr = b.path.toString();
- return astr < bstr ? -1 : astr > bstr ? 1: /* istanbul ignore next */ 0;
- });
- }
- };
- tree.visit(visitor);
- return tree;
-}
-
-function findCommonParent(paths) {
- if (paths.length === 0) {
- return new Path([]);
- }
- var common = paths[0],
- i;
-
- for (i = 1; i < paths.length; i += 1) {
- common = common.commonPrefixPath(paths[i]);
- if (common.length === 0) {
- break;
- }
- }
- return common;
-}
-
-function toInitialList(coverageMap) {
- var ret = [],
- commonParent;
- coverageMap.files().forEach(function (filePath) {
- var p = new Path(filePath),
- coverage = coverageMap.fileCoverageFor(filePath);
- ret.push({
- filePath: filePath,
- path: p,
- fileCoverage: coverage
- });
- });
- commonParent = findCommonParent(ret.map(function (o) { return o.path.parent(); }));
- if (commonParent.length > 0) {
- ret.forEach(function (o) {
- o.path.splice(0, commonParent.length);
- });
- }
- return {
- list: ret,
- commonParent: commonParent
- };
-}
-
-function toDirParents(list) {
- var nodeMap = {},
- parentNodeList = [];
- list.forEach(function (o) {
- var node = new ReportNode(o.path, o.fileCoverage),
- parentPath = o.path.parent(),
- parent = nodeMap[parentPath.toString()];
-
- if (!parent) {
- parent = new ReportNode(parentPath);
- nodeMap[parentPath.toString()] = parent;
- parentNodeList.push(parent);
- }
- parent.addChild(node);
- });
- return parentNodeList;
-}
-
-function foldIntoParents(nodeList) {
- var ret = [], i, j;
-
- // sort by longest length first
- nodeList.sort(function (a, b) {
- return -1 * Path.compare(a.path , b.path);
- });
-
- for (i = 0; i < nodeList.length; i += 1) {
- var first = nodeList[i],
- inserted = false;
-
- for (j = i + 1; j < nodeList.length; j += 1) {
- var second = nodeList[j];
- if (second.path.ancestorOf(first.path)) {
- second.addChild(first);
- inserted = true;
- break;
- }
- }
-
- if (!inserted) {
- ret.push(first);
- }
- }
- return ret;
-}
-
-function createRoot() {
- return new ReportNode(new Path([]));
-}
-
-function createNestedSummary(coverageMap) {
- var flattened = toInitialList(coverageMap),
- dirParents = toDirParents(flattened.list),
- topNodes = foldIntoParents(dirParents),
- root;
-
- if (topNodes.length === 0) {
- return treeFor(new ReportNode([]));
- }
-
- if (topNodes.length === 1) {
- return treeFor(topNodes[0]);
- }
-
- root = createRoot();
- topNodes.forEach(function (node) {
- root.addChild(node);
- });
- return treeFor(root);
-}
-
-function createPackageSummary(coverageMap) {
- var flattened = toInitialList(coverageMap),
- dirParents = toDirParents(flattened.list),
- common = flattened.commonParent,
- prefix,
- root;
-
- if (dirParents.length === 1) {
- root = dirParents[0];
- } else {
- root = createRoot();
- // if one of the dirs is itself the root,
- // then we need to create a top-level dir
- dirParents.forEach(function (dp) {
- if (dp.path.length === 0) {
- prefix = 'root';
- }
- });
- if (prefix && common.length > 0) {
- prefix = common.elements()[common.elements().length - 1];
- }
- dirParents.forEach(function (node) {
- root.addChild(node);
- });
- }
- return treeFor(root, prefix);
-}
-
-function createFlatSummary(coverageMap) {
- var flattened = toInitialList(coverageMap),
- list = flattened.list,
- root;
-
- root = createRoot();
- list.forEach(function (o) {
- var node = new ReportNode(o.path, o.fileCoverage);
- root.addChild(node);
- });
- return treeFor(root);
-}
-
-module.exports = {
- createNestedSummary: createNestedSummary,
- createPackageSummary: createPackageSummary,
- createFlatSummary: createFlatSummary
-};
diff --git a/node_modules/istanbul-lib-report/lib/tree.js b/node_modules/istanbul-lib-report/lib/tree.js
deleted file mode 100644
index 190808d18..000000000
--- a/node_modules/istanbul-lib-report/lib/tree.js
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-"use strict";
-
-var util = require('util');
-/**
- * An object with methods that are called during the traversal of the coverage tree.
- * A visitor has the following methods that are called during tree traversal.
- *
- * * `onStart(root, state)` - called before traversal begins
- * * `onSummary(node, state)` - called for every summary node
- * * `onDetail(node, state)` - called for every detail node
- * * `onSummaryEnd(node, state)` - called after all children have been visited for
- * a summary node.
- * * `onEnd(root, state)` - called after traversal ends
- *
- * @param delegate - a partial visitor that only implements the methods of interest
- * The visitor object supplies the missing methods as noops. For example, reports
- * that only need the final coverage summary need implement `onStart` and nothing
- * else. Reports that use only detailed coverage information need implement `onDetail`
- * and nothing else.
- * @constructor
- */
-function Visitor(delegate) {
- this.delegate = delegate;
-}
-
-['Start', 'End', 'Summary', 'SummaryEnd', 'Detail' ].forEach(function (k) {
- var f = 'on' + k;
- Visitor.prototype[f] = function (node, state) {
- if (this.delegate[f] && typeof this.delegate[f] === 'function') {
- this.delegate[f].call(this.delegate, node, state);
- }
- };
-});
-
-function CompositeVisitor(visitors) {
- if (!Array.isArray(visitors)) {
- visitors = [visitors];
- }
- this.visitors = visitors.map(function (v) {
- if (v instanceof Visitor) {
- return v;
- }
- return new Visitor(v);
- });
-}
-
-util.inherits(CompositeVisitor, Visitor);
-
-['Start', 'Summary', 'SummaryEnd', 'Detail', 'End'].forEach(function (k) {
- var f = 'on' + k;
- CompositeVisitor.prototype[f] = function (node, state) {
- this.visitors.forEach(function (v) {
- v[f](node, state);
- });
- };
-});
-
-function Node() {
-}
-
-/* istanbul ignore next: abstract method */
-Node.prototype.getQualifiedName = function () {
- throw new Error('getQualifiedName must be overridden');
-};
-
-/* istanbul ignore next: abstract method */
-Node.prototype.getRelativeName = function () {
- throw new Error('getRelativeName must be overridden');
-};
-
-/* istanbul ignore next: abstract method */
-Node.prototype.isRoot = function () {
- return !this.getParent();
-};
-
-/* istanbul ignore next: abstract method */
-Node.prototype.getParent = function () {
- throw new Error('getParent must be overridden');
-};
-
-/* istanbul ignore next: abstract method */
-Node.prototype.getChildren = function () {
- throw new Error('getChildren must be overridden');
-};
-
-/* istanbul ignore next: abstract method */
-Node.prototype.isSummary = function () {
- throw new Error('isSummary must be overridden');
-};
-
-/* istanbul ignore next: abstract method */
-Node.prototype.getCoverageSummary = function (/* filesOnly */) {
- throw new Error('getCoverageSummary must be overridden');
-};
-
-/* istanbul ignore next: abstract method */
-Node.prototype.getFileCoverage = function () {
- throw new Error('getFileCoverage must be overridden');
-};
-/**
- * visit all nodes depth-first from this node down. Note that `onStart`
- * and `onEnd` are never called on the visitor even if the current
- * node is the root of the tree.
- * @param visitor a full visitor that is called during tree traversal
- * @param state optional state that is passed around
- */
-Node.prototype.visit = function (visitor, state) {
-
- var that = this,
- visitChildren = function () {
- that.getChildren().forEach(function (child) {
- child.visit(visitor, state);
- });
- };
-
- if (this.isSummary()) {
- visitor.onSummary(this, state);
- } else {
- visitor.onDetail(this, state);
- }
-
- visitChildren();
-
- if (this.isSummary()) {
- visitor.onSummaryEnd(this, state);
- }
-};
-
-/**
- * abstract base class for a coverage tree.
- * @constructor
- */
-function Tree() {
-}
-
-/**
- * returns the root node of the tree
- */
-/* istanbul ignore next: abstract method */
-Tree.prototype.getRoot = function () {
- throw new Error('getRoot must be overridden');
-};
-
-/**
- * visits the tree depth-first with the supplied partial visitor
- * @param visitor - a potentially partial visitor
- * @param state - the state to be passed around during tree traversal
- */
-Tree.prototype.visit = function (visitor, state) {
- if (!(visitor instanceof Visitor)) {
- visitor = new Visitor(visitor);
- }
- visitor.onStart(this.getRoot(), state);
- this.getRoot().visit(visitor, state);
- visitor.onEnd(this.getRoot(), state);
-};
-
-module.exports = {
- Tree: Tree,
- Node: Node,
- Visitor: Visitor,
- CompositeVisitor: CompositeVisitor
-};
diff --git a/node_modules/istanbul-lib-report/lib/watermarks.js b/node_modules/istanbul-lib-report/lib/watermarks.js
deleted file mode 100644
index a522129f1..000000000
--- a/node_modules/istanbul-lib-report/lib/watermarks.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-module.exports = {
- getDefault: function () {
- return {
- statements: [50, 80],
- functions: [50, 80],
- branches: [50, 80],
- lines: [50, 80]
- };
- }
-};
diff --git a/node_modules/istanbul-lib-report/lib/xml-writer.js b/node_modules/istanbul-lib-report/lib/xml-writer.js
deleted file mode 100644
index 7f372fb3c..000000000
--- a/node_modules/istanbul-lib-report/lib/xml-writer.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- Copyright 2012-2015, Yahoo Inc.
- Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
- */
-var INDENT = ' ';
-
-/**
- * a utility class to produce well-formed, indented XML
- * @param {ContentWriter} contentWriter the content writer that this utility wraps
- * @constructor
- */
-function XMLWriter(contentWriter) {
- this.cw = contentWriter;
- this.stack = [];
-}
-
-function attrString(attrs) {
- if (!attrs) {
- return '';
- }
- var ret = [];
- Object.keys(attrs).forEach(function (k) {
- var v = attrs[k];
- ret.push(k + '="' + v + '"');
- });
- return ret.length === 0 ? '' : ' ' + ret.join(' ');
-}
-
-XMLWriter.prototype.indent = function (str) {
- return this.stack.map(function () { return INDENT; }).join('') + str;
-};
-
-/**
- * writes the opening XML tag with the supplied attributes
- * @param {String} name tag name
- * @param {Object} [attrs=null] attrs attributes for the tag
- */
-XMLWriter.prototype.openTag = function (name, attrs) {
- var str = this.indent('<' + name + attrString(attrs) + '>');
- this.cw.println(str);
- this.stack.push(name);
-};
-
-/**
- * closes an open XML tag.
- * @param {String} name - tag name to close. This must match the writer's
- * notion of the tag that is currently open.
- */
-XMLWriter.prototype.closeTag = function (name) {
- if (this.stack.length === 0) {
- throw new Error('Attempt to close tag ' + name + ' when not opened');
- }
- var stashed = this.stack.pop(),
- str = '</' + name + '>';
-
- if (stashed !== name) {
- throw new Error('Attempt to close tag ' + name + ' when ' + stashed + ' was the one open');
- }
- this.cw.println(this.indent(str));
-};
-/**
- * writes a tag and its value opening and closing it at the same time
- * @param {String} name tag name
- * @param {Object} [attrs=null] attrs tag attributes
- * @param {String} [content=null] content optional tag content
- */
-XMLWriter.prototype.inlineTag = function (name, attrs, content) {
- var str = '<' + name + attrString(attrs);
- if (content) {
- str += '>' + content + '</' + name + '>';
- } else {
- str += '/>';
- }
- str = this.indent(str);
- this.cw.println(str);
-};
-/**
- * closes all open tags and ends the document
- */
-XMLWriter.prototype.closeAll = function () {
- var that = this;
- this.stack.slice().reverse().forEach(function (name) {
- that.closeTag(name);
- });
-};
-
-module.exports = XMLWriter;
diff --git a/node_modules/istanbul-lib-report/node_modules/.bin/mkdirp b/node_modules/istanbul-lib-report/node_modules/.bin/mkdirp
deleted file mode 120000
index 91a5f623f..000000000
--- a/node_modules/istanbul-lib-report/node_modules/.bin/mkdirp
+++ /dev/null
@@ -1 +0,0 @@
-../../../mkdirp/bin/cmd.js \ No newline at end of file
diff --git a/node_modules/istanbul-lib-report/node_modules/has-flag/index.js b/node_modules/istanbul-lib-report/node_modules/has-flag/index.js
deleted file mode 100644
index fdcb342f4..000000000
--- a/node_modules/istanbul-lib-report/node_modules/has-flag/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-module.exports = function (flag, argv) {
- argv = argv || process.argv;
-
- var terminatorPos = argv.indexOf('--');
- var prefix = /^--/.test(flag) ? '' : '--';
- var pos = argv.indexOf(prefix + flag);
-
- return pos !== -1 && (terminatorPos !== -1 ? pos < terminatorPos : true);
-};
diff --git a/node_modules/istanbul-lib-report/node_modules/has-flag/license b/node_modules/istanbul-lib-report/node_modules/has-flag/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/istanbul-lib-report/node_modules/has-flag/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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/istanbul-lib-report/node_modules/has-flag/package.json b/node_modules/istanbul-lib-report/node_modules/has-flag/package.json
deleted file mode 100644
index 930dc7ff2..000000000
--- a/node_modules/istanbul-lib-report/node_modules/has-flag/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "has-flag",
- "version": "1.0.0",
- "description": "Check if argv has a specific flag",
- "license": "MIT",
- "repository": "sindresorhus/has-flag",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "maintainers": [
- "Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
- "Joshua Appelman <jappelman@xebia.com> (jbnicolai.com)",
- "JD Ballard <i.am.qix@gmail.com> (github.com/qix-)"
- ],
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "node test.js"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "has",
- "check",
- "detect",
- "contains",
- "find",
- "flag",
- "cli",
- "command-line",
- "argv",
- "process",
- "arg",
- "args",
- "argument",
- "arguments",
- "getopt",
- "minimist",
- "optimist"
- ],
- "devDependencies": {
- "ava": "0.0.4"
- }
-}
diff --git a/node_modules/istanbul-lib-report/node_modules/has-flag/readme.md b/node_modules/istanbul-lib-report/node_modules/has-flag/readme.md
deleted file mode 100644
index ea5c81793..000000000
--- a/node_modules/istanbul-lib-report/node_modules/has-flag/readme.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag)
-
-> Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag
-
-Correctly stops looking after an `--` argument terminator.
-
-
-## Install
-
-```
-$ npm install --save has-flag
-```
-
-
-## Usage
-
-```js
-// foo.js
-var hasFlag = require('has-flag');
-
-hasFlag('unicorn');
-//=> true
-
-hasFlag('--unicorn');
-//=> true
-
-hasFlag('foo=bar');
-//=> true
-
-hasFlag('foo');
-//=> false
-
-hasFlag('rainbow');
-//=> false
-```
-
-```
-$ node foo.js --unicorn --foo=bar -- --rainbow
-```
-
-
-## API
-
-### hasFlag(flag, [argv])
-
-Returns a boolean whether the flag exists.
-
-#### flag
-
-Type: `string`
-
-CLI flag to look for. The `--` prefix is optional.
-
-#### argv
-
-Type: `array`
-Default: `process.argv`
-
-CLI arguments.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/istanbul-lib-report/node_modules/supports-color/browser.js b/node_modules/istanbul-lib-report/node_modules/supports-color/browser.js
deleted file mode 100644
index ae7c87b17..000000000
--- a/node_modules/istanbul-lib-report/node_modules/supports-color/browser.js
+++ /dev/null
@@ -1,2 +0,0 @@
-'use strict';
-module.exports = false;
diff --git a/node_modules/istanbul-lib-report/node_modules/supports-color/index.js b/node_modules/istanbul-lib-report/node_modules/supports-color/index.js
deleted file mode 100644
index 2571c735f..000000000
--- a/node_modules/istanbul-lib-report/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/istanbul-lib-report/node_modules/supports-color/license b/node_modules/istanbul-lib-report/node_modules/supports-color/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/istanbul-lib-report/node_modules/supports-color/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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/istanbul-lib-report/node_modules/supports-color/package.json b/node_modules/istanbul-lib-report/node_modules/supports-color/package.json
deleted file mode 100644
index 0cc4b383d..000000000
--- a/node_modules/istanbul-lib-report/node_modules/supports-color/package.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "name": "supports-color",
- "version": "3.2.3",
- "description": "Detect whether a terminal supports color",
- "license": "MIT",
- "repository": "chalk/supports-color",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "maintainers": [
- "Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
- "Joshua Boy Nicolai Appelman <joshua@jbna.nl> (jbna.nl)",
- "JD Ballard <i.am.qix@gmail.com> (github.com/qix-)"
- ],
- "browser": "browser.js",
- "engines": {
- "node": ">=0.8.0"
- },
- "scripts": {
- "test": "xo && mocha",
- "travis": "mocha"
- },
- "files": [
- "index.js",
- "browser.js"
- ],
- "keywords": [
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "ansi",
- "styles",
- "tty",
- "rgb",
- "256",
- "shell",
- "xterm",
- "command-line",
- "support",
- "supports",
- "capability",
- "detect",
- "truecolor",
- "16m",
- "million"
- ],
- "dependencies": {
- "has-flag": "^1.0.0"
- },
- "devDependencies": {
- "mocha": "*",
- "require-uncached": "^1.0.2",
- "xo": "*"
- },
- "xo": {
- "envs": [
- "node",
- "mocha"
- ]
- }
-}
diff --git a/node_modules/istanbul-lib-report/node_modules/supports-color/readme.md b/node_modules/istanbul-lib-report/node_modules/supports-color/readme.md
deleted file mode 100644
index f7bae4c54..000000000
--- a/node_modules/istanbul-lib-report/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/istanbul-lib-report/package.json b/node_modules/istanbul-lib-report/package.json
deleted file mode 100644
index 7f2843ff6..000000000
--- a/node_modules/istanbul-lib-report/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "istanbul-lib-report",
- "version": "1.1.5",
- "description": "Base reporting library for istanbul",
- "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",
- "main": "index.js",
- "files": [
- "lib",
- "index.js"
- ],
- "scripts": {
- "pretest": "jshint index.js lib/ test/",
- "test": "mocha"
- },
- "dependencies": {
- "istanbul-lib-coverage": "^1.2.1",
- "mkdirp": "^0.5.1",
- "path-parse": "^1.0.5",
- "supports-color": "^3.1.2"
- },
- "devDependencies": {
- "chai": "^3.0.0",
- "istanbul": "^0.4.0",
- "jshint": "^2.8.0",
- "mocha": "^3.2.0",
- "rimraf": "^2.6.1"
- },
- "license": "BSD-3-Clause",
- "bugs": {
- "url": "https://github.com/istanbuljs/istanbuljs/issues"
- },
- "homepage": "https://github.com/istanbuljs/istanbuljs",
- "repository": {
- "type": "git",
- "url": "git@github.com:istanbuljs/istanbuljs.git"
- },
- "keywords": [
- "istanbul",
- "report",
- "api",
- "lib"
- ]
-}