coffeelint
Advanced tools
Comparing version 1.11.1 to 1.12.0
{ | ||
"name": "coffeelint", | ||
"description": "Lint your CoffeeScript", | ||
"version": "1.11.1", | ||
"version": "1.12.0", | ||
"homepage": "http://www.coffeelint.org", | ||
@@ -25,3 +25,5 @@ "keywords": [ | ||
"dependencies": { | ||
"browserify": "~8.1.0", | ||
"coffee-script": "^1.9.1", | ||
"coffeeify": "~1.0.0", | ||
"glob": "^4.0.0", | ||
@@ -45,2 +47,3 @@ "ignore": "^2.2.15", | ||
"publish": "cake publish", | ||
"install": "cake install", | ||
"lint": "cake compile && ./bin/coffeelint .", | ||
@@ -51,2 +54,2 @@ "lint-csv": "cake compile && ./bin/coffeelint --csv .", | ||
} | ||
} | ||
} |
@@ -117,3 +117,3 @@ | ||
jsonIndentation = text.split('\n')[1].match(/^\s+/)[0].length; | ||
} catch (_error) {} | ||
} catch (undefined) {} | ||
return JSON.parse(stripComments(text)); | ||
@@ -176,3 +176,3 @@ }; | ||
SelectedReporter = (ref = coreReporters[strReporter]) != null ? ref : (function() { | ||
var reporterPath; | ||
var error, reporterPath; | ||
try { | ||
@@ -182,3 +182,3 @@ reporterPath = resolve(strReporter, { | ||
}); | ||
} catch (_error) { | ||
} catch (error) { | ||
reporterPath = strReporter; | ||
@@ -185,0 +185,0 @@ } |
@@ -46,7 +46,7 @@ | ||
loadJSON = function(filename) { | ||
var e; | ||
var e, error; | ||
try { | ||
return JSON.parse(stripComments(fs.readFileSync(filename).toString())); | ||
} catch (_error) { | ||
e = _error; | ||
} catch (error) { | ||
e = error; | ||
process.stderr.write("Could not load JSON file '" + filename + "': " + e); | ||
@@ -53,0 +53,0 @@ return null; |
@@ -16,9 +16,9 @@ (function() { | ||
return require(rulePath); | ||
} catch (_error) {} | ||
} catch (undefined) {} | ||
try { | ||
return require(moduleName); | ||
} catch (_error) {} | ||
} catch (undefined) {} | ||
try { | ||
return require(path.resolve(process.cwd(), moduleName)); | ||
} catch (_error) {} | ||
} catch (undefined) {} | ||
return require(moduleName); | ||
@@ -38,3 +38,3 @@ }, | ||
loadRule: function(coffeelint, moduleName, ruleName) { | ||
var e, i, len, results, rule, ruleModule; | ||
var e, error, i, len, results, rule, ruleModule; | ||
if (ruleName == null) { | ||
@@ -55,4 +55,4 @@ ruleName = void 0; | ||
} | ||
} catch (_error) { | ||
e = _error; | ||
} catch (error) { | ||
e = error; | ||
console.error("Error loading " + moduleName); | ||
@@ -59,0 +59,0 @@ throw e; |
{ | ||
"name": "coffeelint", | ||
"description": "Lint your CoffeeScript", | ||
"version": "1.11.1", | ||
"version": "1.12.0", | ||
"homepage": "http://www.coffeelint.org", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
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
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
42
4
593070
97
11347
1