esprima-fb
Advanced tools
Comparing version 2001.1001.2000-dev-harmony-fb to 3001.1.0-dev-harmony-fb
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "2001.1001.2000-dev-harmony-fb", | ||
"version": "3001.0001.0000-dev-harmony-fb", | ||
"engines": { | ||
@@ -30,8 +30,12 @@ "node": ">=0.4.0" | ||
"jslint": "~0.1.9", | ||
"eslint": "~0.1.0", | ||
"istanbul": "~0.1.27", | ||
"complexity-report": "~0.6.1" | ||
"complexity-report": "~0.6.1", | ||
"regenerate": "~0.5.4", | ||
"unicode-6.3.0": "~0.1.0", | ||
"json-diff": "~0.3.1" | ||
}, | ||
"scripts": { | ||
"test": "npm run-script lint && node test/run.js && npm run-script coverage && npm run-script complexity", | ||
"lint": "node_modules/jslint/bin/jslint.js esprima.js", | ||
"lint": "node tools/check-version.js && node_modules/eslint/bin/eslint.js esprima.js && node_modules/jslint/bin/jslint.js esprima.js", | ||
"coverage": "npm run-script analyze-coverage && npm run-script check-coverage", | ||
@@ -38,0 +42,0 @@ "analyze-coverage": "node node_modules/istanbul/lib/cli.js cover test/runner.js", |
@@ -396,2 +396,3 @@ /* | ||
fs = require('fs'), | ||
diff = require('json-diff').diffString, | ||
total = 0, | ||
@@ -426,5 +427,15 @@ failures = [], | ||
failures.forEach(function (failure) { | ||
console.error(failure.source + ': Expected\n ' + | ||
failure.expected.split('\n').join('\n ') + | ||
'\nto match\n ' + failure.actual); | ||
try { | ||
var expectedObject = JSON.parse(failure.expected); | ||
var actualObject = JSON.parse(failure.actual); | ||
console.error(failure.source + ': Expected\n ' + | ||
failure.expected.split('\n').join('\n ') + | ||
'\nto match\n ' + failure.actual + '\nDiff:\n' + | ||
diff(expectedObject, actualObject)); | ||
} catch (ex) { | ||
console.error(failure.source + ': Expected\n ' + | ||
failure.expected.split('\n').join('\n ') + | ||
'\nto match\n ' + failure.actual); | ||
} | ||
}); | ||
@@ -431,0 +442,0 @@ } else { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2014374
32
44450
7
2