grunt-contrib-nodeunit
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "grunt-contrib-nodeunit", | ||
"description": "Run Nodeunit unit tests.", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-nodeunit", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-nodeunit v0.3.1 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-nodeunit.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-nodeunit) | ||
# grunt-contrib-nodeunit v0.3.2 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-nodeunit.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-nodeunit) | ||
@@ -127,2 +127,2 @@ > Run Nodeunit unit tests. | ||
*This file was generated on Thu Feb 13 2014 19:05:58.* | ||
*This file was generated on Mon Feb 17 2014 22:12:33.* |
@@ -16,2 +16,3 @@ /* | ||
var util = require('util'); | ||
var fs = require('fs'); | ||
@@ -230,2 +231,16 @@ // External libs. | ||
// Ensure the default nodeunit options are set by reading in the nodeunit.json file. | ||
var nodeUnitDefaults = {}; | ||
var nodeUnitDefaultsFile = path.join(__dirname, '..', 'node_modules', 'nodeunit', 'bin', 'nodeunit.json'); | ||
if (fs.existsSync(nodeUnitDefaultsFile)) { | ||
nodeUnitDefaults = JSON.parse(fs.readFileSync(nodeUnitDefaultsFile, 'utf8')); | ||
} | ||
for (var defaultVal in nodeUnitDefaults) { | ||
if (typeof options.reporterOptions[defaultVal] === 'undefined') { | ||
options.reporterOptions[defaultVal] = nodeUnitDefaults[defaultVal]; | ||
} | ||
} | ||
if (!nodeunit.reporters[options.reporter]) { | ||
@@ -232,0 +247,0 @@ return done(new Error('Reporter ' + options.reporter + ' not found')); |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
15526
243
0
1