Comparing version 2.1.5 to 2.1.6
{ | ||
"name": "jshint", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"homepage": "http://jshint.com/", | ||
@@ -5,0 +5,0 @@ "description": "Static analysis tool for JavaScript", |
@@ -253,27 +253,21 @@ "use strict"; | ||
var buffer = []; | ||
var options = JSON.parse(JSON.stringify(require("./defaults.json"))); | ||
if (config) { | ||
for (var key in config) { | ||
if (config.hasOwnProperty(key)) { | ||
options[key] = config[key]; | ||
} | ||
} | ||
} | ||
config = config || {}; | ||
config = JSON.parse(JSON.stringify(config)); | ||
if (options.prereq) { | ||
options.prereq.forEach(function (fp) { | ||
fp = path.join(options.dirname, fp); | ||
if (config.prereq) { | ||
config.prereq.forEach(function (fp) { | ||
fp = path.join(config.dirname, fp); | ||
if (shjs.test("-e", fp)) | ||
buffer.push(shjs.cat(fp)); | ||
}); | ||
delete options.prereq; | ||
delete config.prereq; | ||
} | ||
if (options.globals) { | ||
globals = options.globals; | ||
delete options.globals; | ||
if (config.globals) { | ||
globals = config.globals; | ||
delete config.globals; | ||
} | ||
delete options.dirname; | ||
delete config.dirname; | ||
buffer.push(code); | ||
@@ -283,3 +277,3 @@ buffer = buffer.join("\n"); | ||
if (!JSHINT(buffer, options, globals)) { | ||
if (!JSHINT(buffer, config, globals)) { | ||
JSHINT.errors.forEach(function (err) { | ||
@@ -286,0 +280,0 @@ if (err) { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
214428
16
7303