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

cosmiconfig

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmiconfig - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

4

CHANGELOG.md
# Changelog
## 2.1.3
- Licensing improvement: switched from `json-parse-helpfulerror` to `parse-json`.
## 2.1.2

@@ -4,0 +8,0 @@

4

lib/parseJson.js
'use strict';
var jph = require('json-parse-helpfulerror');
var parseJson = require('parse-json');
module.exports = function (json, filepath) {
try {
return jph.parse(json);
return parseJson(json);
} catch (err) {

@@ -9,0 +9,0 @@ err.message = 'JSON Error in ' + filepath + ':\n' + err.message;

{
"name": "cosmiconfig",
"version": "2.1.2",
"version": "2.1.3",
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module",

@@ -37,6 +37,6 @@ "main": "index.js",

"js-yaml": "^3.4.3",
"json-parse-helpfulerror": "^1.0.3",
"minimist": "^1.2.0",
"object-assign": "^4.1.0",
"os-homedir": "^1.0.1",
"parse-json": "^2.2.0",
"require-from-string": "^1.1.0"

@@ -43,0 +43,0 @@ },

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