Socket
Socket
Sign inDemoInstall

jsonlint

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonlint - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

11

lib/cli.js

@@ -93,5 +93,5 @@ #!/usr/bin/env node

return JSON.stringify(parsed,null,options.indent);
return JSON.stringify(parsed, null, options.indent);
} catch (e) {
if ( options.forcePrettyPrint ) {
if (options.forcePrettyPrint) {
/* From https://github.com/umbrae/jsonlintdotcom:

@@ -111,4 +111,4 @@ * If we failed to validate, run our manual formatter and then re-validate so that we

}
return formatted;
process.exit(1);
// force the pretty print before exiting
console.log(formatted);
}

@@ -119,5 +119,4 @@ } else {

}
process.exit(1);
}
process.exit(1);
}

@@ -124,0 +123,0 @@ }

@@ -11,3 +11,3 @@ {

],
"version": "1.6.1",
"version": "1.6.2",
"preferGlobal": true,

@@ -14,0 +14,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc