Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-config-reader

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-config-reader - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

12

index.js

@@ -23,7 +23,7 @@ (function(fs, path){

} catch (err) {
error = err;
error = {"type":"parse", "message":"Failed to parse file as JSON!", "raw":err};
}
} else {
error = err;
error = {"type":"read", "message":"Failed to read file!", "raw":err};
}

@@ -41,3 +41,9 @@ call(error, config);

} catch (err) {
return err;
if (err instanceof SyntaxError) {
error = {"type":"parse", "message":"Failed to parse file as JSON!"};
} else {
error = {"type":"parse", "message":"Failed to read file!"};
}
error.raw = err;
return error;
}

@@ -44,0 +50,0 @@ }

{
"name": "json-config-reader",
"version": "1.1.0",
"version": "1.2.0",
"description": "Reads and caches JSON configurations.",

@@ -5,0 +5,0 @@ "main": "index.js",

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