js-beautify
Advanced tools
Comparing version 0.2.1 to 0.2.2
17
cli.js
@@ -68,2 +68,8 @@ #!/usr/bin/env node | ||
function onOutputError(err) { | ||
if (err.code === 'EACCES') { | ||
console.error(err.path + " is not writable. Skipping!"); | ||
} | ||
} | ||
argv._.forEach(function (filepath) { | ||
@@ -100,2 +106,5 @@ var data = '', | ||
}); | ||
// catch possible errors | ||
output.on('error', onOutputError); | ||
} else { | ||
@@ -108,8 +117,10 @@ output = process.stdout; | ||
output.write(pretty); | ||
if (output.writable) { | ||
output.write(pretty); | ||
if (config.outfile) { | ||
output.end(); | ||
if (config.outfile) { | ||
output.end(); | ||
} | ||
} | ||
}); | ||
}); |
{ | ||
"name": "js-beautify", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "jsbeautifier.org for node", | ||
@@ -5,0 +5,0 @@ "main": "beautify.js", |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
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
85032
1807
0
13
1