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

lowdb

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lowdb - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

7

package.json
{
"name": "lowdb",
"version": "0.10.1",
"version": "0.10.2",
"description": "Flat JSON file database",

@@ -34,5 +34,6 @@ "keywords": [

"dependencies": {
"graceful-fs": "^3.0.8",
"json-parse-helpfulerror": "^1.0.3",
"lodash": "^3.1.0",
"steno": "^0.4.1",
"graceful-fs": "^3.0.8"
"steno": "^0.4.1"
},

@@ -39,0 +40,0 @@ "devDependencies": {

var lodash = require('lodash')
var disk = require('./disk')
var jph = require('json-parse-helpfulerror')

@@ -97,4 +98,3 @@ // Returns a lodash chain that calls .value() and cb()

} catch (e) {
if (e instanceof SyntaxError) e.message = 'Malformed JSON'
e.message += ' in file:' + file
if (e instanceof SyntaxError) e.message = 'Malformed JSON in file: ' + file + '\n' + e.message
throw e

@@ -115,5 +115,5 @@ }

low.parse = function (str) {
return JSON.parse(str)
return jph.parse(str)
}
module.exports = low
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