mocha
Advanced tools
Comparing version 6.0.2 to 6.1.0
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
'use strict'; | ||
module.exports = require('./lib/mocha'); |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -16,3 +16,3 @@ 'use strict'; | ||
const path = require('path'); | ||
const {loadOptions} = require('./options'); | ||
const {loadOptions, YARGS_PARSER_CONFIG} = require('./options'); | ||
const commands = require('./commands'); | ||
@@ -63,2 +63,3 @@ const ansi = require('ansi-colors'); | ||
) | ||
.parserConfiguration(YARGS_PARSER_CONFIG) | ||
.parse(argv, loadOptions(argv)); | ||
@@ -65,0 +66,0 @@ }; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -12,5 +12,5 @@ 'use strict'; | ||
const fs = require('fs'); | ||
const findUp = require('findup-sync'); | ||
const path = require('path'); | ||
const debug = require('debug')('mocha:cli:config'); | ||
const findUp = require('find-up'); | ||
@@ -28,7 +28,12 @@ /** | ||
'.mocharc.yml', | ||
'.mocharc.jsonc', | ||
'.mocharc.json' | ||
]; | ||
const isModuleNotFoundError = err => | ||
err.code !== 'MODULE_NOT_FOUND' || | ||
err.message.indexOf('Cannot find module') !== -1; | ||
/** | ||
* Parsers for various config filetypes. Each accepts a filepath and | ||
* Parsers for various config filetypes. Each accepts a filepath and | ||
* returns an object (but could throw) | ||
@@ -39,3 +44,16 @@ */ | ||
require('js-yaml').safeLoad(fs.readFileSync(filepath, 'utf8')), | ||
js: filepath => require(filepath), | ||
js: filepath => { | ||
const cwdFilepath = path.resolve(filepath); | ||
try { | ||
debug(`parsers: load using cwd-relative path: "${cwdFilepath}"`); | ||
return require(cwdFilepath); | ||
} catch (err) { | ||
if (isModuleNotFoundError(err)) { | ||
debug(`parsers: retry load as module-relative path: "${filepath}"`); | ||
return require(filepath); | ||
} else { | ||
throw err; // rethrow | ||
} | ||
} | ||
}, | ||
json: filepath => | ||
@@ -50,11 +68,14 @@ JSON.parse( | ||
* "JSON" files may have comments. | ||
* | ||
* @private | ||
* @param {string} filepath - Config file path to load | ||
* @returns {Object} Parsed config object | ||
* @private | ||
*/ | ||
exports.loadConfig = filepath => { | ||
let config = {}; | ||
debug(`loadConfig: "${filepath}"`); | ||
const ext = path.extname(filepath); | ||
try { | ||
if (/\.ya?ml/.test(ext)) { | ||
if (ext === '.yml' || ext === '.yaml') { | ||
config = parsers.yaml(filepath); | ||
@@ -67,3 +88,3 @@ } else if (ext === '.js') { | ||
} catch (err) { | ||
throw new Error(`failed to parse ${filepath}: ${err}`); | ||
throw new Error(`failed to parse config "${filepath}": ${err}`); | ||
} | ||
@@ -75,2 +96,3 @@ return config; | ||
* Find ("find up") config file starting at `cwd` | ||
* | ||
* @param {string} [cwd] - Current working directory | ||
@@ -80,7 +102,7 @@ * @returns {string|null} Filepath to config, if found | ||
exports.findConfig = (cwd = process.cwd()) => { | ||
const filepath = findUp(exports.CONFIG_FILES, {cwd}); | ||
const filepath = findUp.sync(exports.CONFIG_FILES, {cwd}); | ||
if (filepath) { | ||
debug(`found config at ${filepath}`); | ||
debug(`findConfig: found "${filepath}"`); | ||
} | ||
return filepath; | ||
}; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -84,3 +84,4 @@ 'use strict'; | ||
.join('') | ||
.split(' ') | ||
: []; | ||
}; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -14,6 +14,5 @@ 'use strict'; | ||
const mocharc = require('../mocharc.json'); | ||
const yargsParserConfig = require('../../package.json').yargs; | ||
const {list} = require('./run-helpers'); | ||
const {loadConfig, findConfig} = require('./config'); | ||
const findup = require('findup-sync'); | ||
const findUp = require('find-up'); | ||
const {deprecate} = require('../utils'); | ||
@@ -37,2 +36,12 @@ const debug = require('debug')('mocha:cli:options'); | ||
/** | ||
* Base yargs parser configuration | ||
* @private | ||
*/ | ||
const YARGS_PARSER_CONFIG = { | ||
'combine-arrays': true, | ||
'short-option-groups': false, | ||
'dot-notation': false | ||
}; | ||
/** | ||
* This is the config pulled from the `yargs` property of Mocha's | ||
@@ -45,3 +54,3 @@ * `package.json`, but it also disables camel case expansion as to | ||
*/ | ||
const configuration = Object.assign({}, yargsParserConfig, { | ||
const configuration = Object.assign({}, YARGS_PARSER_CONFIG, { | ||
'camel-case-expansion': false | ||
@@ -252,3 +261,3 @@ }); | ||
result = {}; | ||
const filepath = args.package || findup(mocharc.package); | ||
const filepath = args.package || findUp.sync(mocharc.package); | ||
if (filepath) { | ||
@@ -342,1 +351,2 @@ try { | ||
module.exports.loadOptions = loadOptions; | ||
module.exports.YARGS_PARSER_CONFIG = YARGS_PARSER_CONFIG; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -123,9 +123,12 @@ 'use strict'; | ||
); | ||
if (options.enableTimeouts === false) { | ||
this.timeout(0); | ||
} | ||
} | ||
this.timeout( | ||
options.enableTimeouts === false || options.timeout === false | ||
? 0 | ||
: options.timeout | ||
); | ||
// this guard exists because Suite#timeout does not consider `undefined` to be valid input | ||
if (typeof options.timeout !== 'undefined') { | ||
this.timeout(options.timeout === false ? 0 : options.timeout); | ||
} | ||
if ('retries' in options) { | ||
@@ -132,0 +135,0 @@ this.retries(options.retries); |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -95,6 +95,6 @@ 'use strict'; | ||
* | ||
* @private | ||
* @param {string} type | ||
* @param {string} str | ||
* @return {string} | ||
* @private | ||
*/ | ||
@@ -172,3 +172,4 @@ var color = (exports.color = function(type, str) { | ||
* | ||
* The diff will be either inline or unified dependant on the value | ||
* @description | ||
* The diff will be either inline or unified dependent on the value | ||
* of `Base.inlineDiff`. | ||
@@ -187,3 +188,3 @@ * | ||
/** | ||
* Output the given `failures` as a list. | ||
* Outputs the given `failures` as a list. | ||
* | ||
@@ -193,5 +194,5 @@ * @public | ||
* @variation 1 | ||
* @param {Array} failures | ||
* @param {Object[]} failures - Each is Test instance with corresponding | ||
* Error property | ||
*/ | ||
exports.list = function(failures) { | ||
@@ -264,14 +265,14 @@ console.log(); | ||
/** | ||
* Initialize a new `Base` reporter. | ||
* Constructs a new `Base` reporter instance. | ||
* | ||
* All other reporters generally | ||
* inherit from this reporter. | ||
* @description | ||
* All other reporters generally inherit from this reporter. | ||
* | ||
* @memberof Mocha.reporters | ||
* @public | ||
* @class | ||
* @param {Runner} runner | ||
* @memberof Mocha.reporters | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Base(runner) { | ||
function Base(runner, options) { | ||
var failures = (this.failures = []); | ||
@@ -282,4 +283,5 @@ | ||
} | ||
this.options = options || {}; | ||
this.runner = runner; | ||
this.stats = runner.stats; // assigned so Reporters keep a closer reference | ||
this.runner = runner; | ||
@@ -306,7 +308,6 @@ runner.on(EVENT_TEST_PASS, function(test) { | ||
/** | ||
* Output common epilogue used by many of | ||
* the bundled reporters. | ||
* Outputs common epilogue used by many of the bundled reporters. | ||
* | ||
* @public | ||
* @memberof Mocha.reporters.Base | ||
* @public | ||
*/ | ||
@@ -348,3 +349,3 @@ Base.prototype.epilogue = function() { | ||
/** | ||
* Pad the given `str` to `len`. | ||
* Pads the given `str` to `len`. | ||
* | ||
@@ -362,3 +363,3 @@ * @private | ||
/** | ||
* Returns an inline diff between 2 strings with coloured ANSI output. | ||
* Returns inline diff between 2 strings with coloured ANSI output. | ||
* | ||
@@ -400,3 +401,3 @@ * @private | ||
/** | ||
* Returns a unified diff between two strings with coloured ANSI output. | ||
* Returns unified diff between two strings with coloured ANSI output. | ||
* | ||
@@ -444,3 +445,3 @@ * @private | ||
/** | ||
* Return a character diff for `err`. | ||
* Returns character diff for `err`. | ||
* | ||
@@ -468,3 +469,3 @@ * @private | ||
/** | ||
* Color lines for `str`, using the color `name`. | ||
* Colors lines for `str`, using the color `name`. | ||
* | ||
@@ -491,3 +492,3 @@ * @private | ||
/** | ||
* Check that a / b have the same type. | ||
* Checks that a / b have the same type. | ||
* | ||
@@ -494,0 +495,0 @@ * @private |
@@ -24,12 +24,13 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Doc` reporter. | ||
* Constructs a new `Doc` reporter instance. | ||
* | ||
* @public | ||
* @class | ||
* @memberof Mocha.reporters | ||
* @extends {Base} | ||
* @public | ||
* @param {Runner} runner | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Doc(runner) { | ||
Base.call(this, runner); | ||
function Doc(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -36,0 +37,0 @@ var indents = 2; |
@@ -25,12 +25,13 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Dot` matrix test reporter. | ||
* Constructs a new `Dot` reporter instance. | ||
* | ||
* @public | ||
* @class | ||
* @memberof Mocha.reporters | ||
* @extends Mocha.reporters.Base | ||
* @public | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Dot(runner) { | ||
Base.call(this, runner); | ||
function Dot(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -37,0 +38,0 @@ var self = this; |
@@ -50,3 +50,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `HTML` reporter. | ||
* Constructs a new `HTML` reporter instance. | ||
* | ||
@@ -57,6 +57,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function HTML(runner) { | ||
Base.call(this, runner); | ||
function HTML(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -63,0 +64,0 @@ var self = this; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -27,8 +27,9 @@ 'use strict'; | ||
* @class | ||
* @memberof Mocha.reporters | ||
* @extends Mocha.reporters.Base | ||
* @memberof Mocha.reporters | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function JSONStream(runner) { | ||
Base.call(this, runner); | ||
function JSONStream(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -35,0 +36,0 @@ var self = this; |
@@ -24,3 +24,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `JSON` reporter. | ||
* Constructs a new `JSON` reporter instance. | ||
* | ||
@@ -31,6 +31,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function JSONReporter(runner) { | ||
Base.call(this, runner); | ||
function JSONReporter(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -37,0 +38,0 @@ var self = this; |
@@ -45,3 +45,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Landing` reporter. | ||
* Constructs a new `Landing` reporter instance. | ||
* | ||
@@ -52,6 +52,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Landing(runner) { | ||
Base.call(this, runner); | ||
function Landing(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -58,0 +59,0 @@ var self = this; |
@@ -28,3 +28,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `List` test reporter. | ||
* Constructs a new `List` reporter instance. | ||
* | ||
@@ -35,6 +35,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function List(runner) { | ||
Base.call(this, runner); | ||
function List(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -41,0 +42,0 @@ var self = this; |
@@ -30,3 +30,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Markdown` reporter. | ||
* Constructs a new `Markdown` reporter instance. | ||
* | ||
@@ -37,6 +37,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Markdown(runner) { | ||
Base.call(this, runner); | ||
function Markdown(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -43,0 +44,0 @@ var level = 0; |
@@ -22,4 +22,7 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Min` minimal test reporter (best used with --watch). | ||
* Constructs a new `Min` reporter instance. | ||
* | ||
* @description | ||
* This minimal test reporter is best used with '--watch'. | ||
* | ||
* @public | ||
@@ -29,6 +32,7 @@ * @class | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Min(runner) { | ||
Base.call(this, runner); | ||
function Min(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -35,0 +39,0 @@ runner.on(EVENT_RUN_BEGIN, function() { |
@@ -25,5 +25,4 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Dot` matrix test reporter. | ||
* Constructs a new `Nyan` reporter instance. | ||
* | ||
* @param {Runner} runner | ||
* @public | ||
@@ -33,7 +32,8 @@ * @class Nyan | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function NyanCat(runner, options) { | ||
Base.call(this, runner, options); | ||
function NyanCat(runner) { | ||
Base.call(this, runner); | ||
var self = this; | ||
@@ -40,0 +40,0 @@ var width = (Base.window.width * 0.75) | 0; |
@@ -31,3 +31,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Progress` bar test reporter. | ||
* Constructs a new `Progress` reporter instance. | ||
* | ||
@@ -38,7 +38,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Object} options | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Progress(runner, options) { | ||
Base.call(this, runner); | ||
Base.call(this, runner, options); | ||
@@ -45,0 +45,0 @@ var self = this; |
@@ -28,3 +28,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `Spec` test reporter. | ||
* Constructs a new `Spec` reporter instance. | ||
* | ||
@@ -35,6 +35,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function Spec(runner) { | ||
Base.call(this, runner); | ||
function Spec(runner, options) { | ||
Base.call(this, runner, options); | ||
@@ -41,0 +42,0 @@ var self = this; |
@@ -28,8 +28,8 @@ 'use strict'; | ||
/** | ||
* Constructs a new TAP reporter with runner instance and reporter options. | ||
* Constructs a new `TAP` reporter instance. | ||
* | ||
* @public | ||
* @class | ||
* @memberof Mocha.reporters | ||
* @extends Mocha.reporters.Base | ||
* @memberof Mocha.reporters | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
@@ -36,0 +36,0 @@ * @param {Object} [options] - runner options |
@@ -37,3 +37,3 @@ 'use strict'; | ||
/** | ||
* Initialize a new `XUnit` reporter. | ||
* Constructs a new `XUnit` reporter instance. | ||
* | ||
@@ -44,6 +44,7 @@ * @public | ||
* @extends Mocha.reporters.Base | ||
* @param {Runner} runner | ||
* @param {Runner} runner - Instance triggers reporter actions. | ||
* @param {Object} [options] - runner options | ||
*/ | ||
function XUnit(runner, options) { | ||
Base.call(this, runner); | ||
Base.call(this, runner, options); | ||
@@ -50,0 +51,0 @@ var stats = this.stats; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -366,5 +366,5 @@ 'use strict'; | ||
if (name === 'beforeAll') { | ||
if (name === HOOK_TYPE_BEFORE_ALL) { | ||
hook.ctx.currentTest = hook.parent.tests[0]; | ||
} else if (name === 'afterAll') { | ||
} else if (name === HOOK_TYPE_AFTER_ALL) { | ||
hook.ctx.currentTest = hook.parent.tests[hook.parent.tests.length - 1]; | ||
@@ -375,2 +375,4 @@ } else { | ||
hook.allowUncaught = self.allowUncaught; | ||
self.emit(constants.EVENT_HOOK_BEGIN, hook); | ||
@@ -391,4 +393,12 @@ | ||
if (err instanceof Pending) { | ||
if (name === HOOK_TYPE_AFTER_ALL) { | ||
utils.deprecate( | ||
'Skipping a test within an "after all" hook is DEPRECATED and will throw an exception in a future version of Mocha. ' + | ||
'Use a return statement or other means to abort hook execution.' | ||
); | ||
} | ||
if (name === HOOK_TYPE_BEFORE_EACH || name === HOOK_TYPE_AFTER_EACH) { | ||
self.test.pending = true; | ||
if (self.test) { | ||
self.test.pending = true; | ||
} | ||
} else { | ||
@@ -787,2 +797,5 @@ suite.tests.forEach(function(test) { | ||
Runner.prototype.uncaught = function(err) { | ||
if (err instanceof Pending) { | ||
return; | ||
} | ||
if (err) { | ||
@@ -789,0 +802,0 @@ debug('uncaught exception %O', err); |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -105,2 +105,3 @@ 'use strict'; | ||
suite.ctx = this.ctx; | ||
suite.root = this.root; | ||
suite.timeout(this.timeout()); | ||
@@ -118,2 +119,3 @@ suite.retries(this.retries()); | ||
* @private | ||
* @todo Do not attempt to set value if `ms` is undefined | ||
* @param {number|string} ms | ||
@@ -120,0 +122,0 @@ * @return {Suite|number} for chaining |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "mocha", | ||
"version": "6.0.2", | ||
"version": "6.1.0", | ||
"description": "simple, flexible, fun test framework", | ||
@@ -22,2 +22,3 @@ "keywords": [ | ||
"Adam Crabtree <adam.crabtree@redrobotlabs.com>", | ||
"Adam Ginzberg <aginzberg@gmail.com>", | ||
"Adam Gruber <talknmime@gmail.com>", | ||
@@ -38,2 +39,4 @@ "Adrian Ludwig <me@adrianludwig.pl>", | ||
"Andreas Lind Petersen <andreas@one.com>", | ||
"Andrew Bradley <abradley@brightcove.com>", | ||
"Andrew Bradley <cspotcode@gmail.com>", | ||
"Andrew Krawchyk <903716+akrawchyk@users.noreply.github.com>", | ||
@@ -90,2 +93,3 @@ "Andrew Nesbitt <andrewnez@gmail.com>", | ||
"Capacitor Set <CapacitorSet@users.noreply.github.com>", | ||
"Carl-Erik Kopseng <carlerik@gmail.com>", | ||
"Casey Foster <casey@caseywebdev.com>", | ||
@@ -121,2 +125,3 @@ "Charles Lowell <cowboyd@frontside.io>", | ||
"David Neubauer <davidneub@gmail.com>", | ||
"DavidLi119 <han.david.li@gmail.com>", | ||
"DavNej <davnej.dev@gmail.com>", | ||
@@ -167,2 +172,3 @@ "Denis Bardadym <bardadymchik@gmail.com>", | ||
"Gareth Murphy <gareth.cpm@gmail.com>", | ||
"Gastón I. Silva <givanse@gmail.com>", | ||
"Gavin Mogan <GavinM@airg.com>", | ||
@@ -205,2 +211,3 @@ "gaye <gaye@mozilla.com>", | ||
"James Carr <james.r.carr@gmail.com>", | ||
"James D. Rogers <jd2rogers2@gmail.com>", | ||
"James G. Kim <jgkim@jayg.org>", | ||
@@ -254,2 +261,3 @@ "James Lal <james@lightsofapollo.com>", | ||
"Juerg B <44573692+juergba@users.noreply.github.com>", | ||
"juergba <filodron@gmail.com>", | ||
"Julien Wajsberg <felash@gmail.com>", | ||
@@ -422,2 +430,3 @@ "Jupp Müller <jupp0r@gmail.com>", | ||
"Svetlana <39729453+Lana-Light@users.noreply.github.com>", | ||
"Sylvain <sstephant+github@gmail.com>", | ||
"Szauka <33459309+Szauka@users.noreply.github.com>", | ||
@@ -464,2 +473,3 @@ "Tapiwa Kelvin <tapiwa@munzwa.tk>", | ||
"Xavier Damman <xdamman@gmail.com>", | ||
"XhmikosR <xhmikosr@gmail.com>", | ||
"XhmikosR <xhmikosr@users.sourceforge.net>", | ||
@@ -509,7 +519,7 @@ "Yanis Wang <yanis.wang@gmail.com>", | ||
"escape-string-regexp": "1.0.5", | ||
"findup-sync": "2.0.0", | ||
"find-up": "3.0.0", | ||
"glob": "7.1.3", | ||
"growl": "1.10.5", | ||
"he": "1.2.0", | ||
"js-yaml": "3.12.0", | ||
"js-yaml": "3.13.0", | ||
"log-symbols": "2.2.0", | ||
@@ -525,4 +535,4 @@ "minimatch": "3.0.4", | ||
"wide-align": "1.1.3", | ||
"yargs": "12.0.5", | ||
"yargs-parser": "11.1.1", | ||
"yargs": "13.2.2", | ||
"yargs-parser": "13.0.0", | ||
"yargs-unparser": "1.5.0" | ||
@@ -533,12 +543,13 @@ }, | ||
"@mocha/contributors": "^1.0.3", | ||
"@mocha/docdash": "^2.0.0", | ||
"assetgraph-builder": "^6.6.3", | ||
"@mocha/docdash": "^2.1.0", | ||
"assetgraph-builder": "^6.10.0", | ||
"autoprefixer": "^9.4.10", | ||
"browserify": "^16.2.3", | ||
"browserify-package-json": "^1.0.1", | ||
"chai": "^4.2.0", | ||
"coffee-script": "^1.10.0", | ||
"coveralls": "^3.0.2", | ||
"coffee-script": "^1.12.7", | ||
"coveralls": "^3.0.3", | ||
"cross-env": "^5.2.0", | ||
"cross-spawn": "^6.0.5", | ||
"eslint": "^5.14.1", | ||
"eslint": "^5.15.0", | ||
"eslint-config-prettier": "^3.6.0", | ||
@@ -549,14 +560,14 @@ "eslint-config-semistandard": "^13.0.0", | ||
"eslint-plugin-node": "^8.0.1", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"husky": "^1.2.1", | ||
"husky": "^1.3.1", | ||
"jsdoc": "^3.5.5", | ||
"karma": "^4.0.0", | ||
"karma": "^4.0.1", | ||
"karma-browserify": "^6.0.0", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-mocha-reporter": "^2.2.4", | ||
"karma-sauce-launcher": "^1.2.0", | ||
"lint-staged": "^8.1.4", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"karma-sauce-launcher": "^2.0.2", | ||
"lint-staged": "^8.1.5", | ||
"markdown-it": "^8.4.2", | ||
@@ -569,4 +580,4 @@ "markdown-it-anchor": "^5.0.2", | ||
"markdown-toc": "^1.2.0", | ||
"markdownlint-cli": "^0.13.0", | ||
"nps": "^5.9.3", | ||
"markdownlint-cli": "^0.14.1", | ||
"nps": "^5.9.4", | ||
"nyc": "^13.3.0", | ||
@@ -577,10 +588,10 @@ "prettier": "^1.16.4", | ||
"remark-inline-links": "^3.1.2", | ||
"rewiremock": "^3.12.3", | ||
"rimraf": "^2.5.2", | ||
"sinon": "^7.2.4", | ||
"rewiremock": "^3.13.0", | ||
"rimraf": "^2.6.3", | ||
"sinon": "^7.2.7", | ||
"strip-ansi": "^5.0.0", | ||
"svgo": "^1.1.1", | ||
"through2": "^3.0.0", | ||
"svgo": "^1.2.0", | ||
"through2": "^3.0.1", | ||
"to-vfile": "^5.0.2", | ||
"unexpected": "^10.39.2", | ||
"unexpected": "^10.40.2", | ||
"unexpected-eventemitter": "^1.1.3", | ||
@@ -619,7 +630,2 @@ "unexpected-sinon": "^10.11.1", | ||
}, | ||
"yargs": { | ||
"combine-arrays": true, | ||
"short-option-groups": false, | ||
"dot-notation": false | ||
}, | ||
"gitter": "https://gitter.im/mochajs/mocha", | ||
@@ -626,0 +632,0 @@ "@mocha/contributors": { |
@@ -0,0 +0,0 @@ <p align="center"> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1011532
25233
56
1
32
2
+ Addedfind-up@3.0.0
+ Addedansi-regex@4.1.1(transitive)
+ Addedemoji-regex@7.0.3(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedjs-yaml@3.13.0(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedstring-width@3.1.0(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedyargs@13.2.2(transitive)
+ Addedyargs-parser@13.0.0(transitive)
- Removedfindup-sync@2.0.0
- Removedarr-diff@4.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-unique@0.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedatob@2.1.2(transitive)
- Removedbase@0.11.2(transitive)
- Removedbraces@2.3.2(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removeddetect-file@1.0.0(transitive)
- Removedexpand-brackets@2.1.4(transitive)
- Removedexpand-tilde@2.0.2(transitive)
- Removedextend-shallow@2.0.13.0.2(transitive)
- Removedextglob@2.0.4(transitive)
- Removedfill-range@4.0.0(transitive)
- Removedfindup-sync@2.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedget-value@2.0.6(transitive)
- Removedglobal-modules@1.0.0(transitive)
- Removedglobal-prefix@1.0.2(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedhomedir-polyfill@1.0.3(transitive)
- Removedini@1.3.8(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-extendable@0.1.11.0.1(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@3.1.0(transitive)
- Removedis-number@3.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedjs-yaml@3.12.0(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmicromatch@3.1.10(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedms@2.0.0(transitive)
- Removednanomatch@1.2.13(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedparse-passwd@1.0.0(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-dir@1.0.1(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedret@0.1.15(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedset-value@2.0.1(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedunion-value@1.0.1(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
Updatedjs-yaml@3.13.0
Updatedyargs@13.2.2
Updatedyargs-parser@13.0.0