Socket
Socket
Sign inDemoInstall

mem-fs-editor

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mem-fs-editor - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

6

actions/read-json.js

@@ -5,3 +5,7 @@ 'use strict';

if (this.exists(path)) {
return JSON.parse(this.read(path));
try {
return JSON.parse(this.read(path));
} catch (error) {
throw new Error('Could not parse JSON in file: ' + path + '. Detail: ' + error.message);
}
} else {

@@ -8,0 +12,0 @@ return defaults;

3

package.json
{
"name": "mem-fs-editor",
"version": "2.0.3",
"version": "2.0.4",
"description": "File edition helpers working on top of mem-fs",

@@ -30,2 +30,3 @@ "scripts": {

"devDependencies": {
"escape-regexp": "0.0.1",
"mem-fs": "^1.0.0",

@@ -32,0 +33,0 @@ "mocha": "^2.1.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