New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ramlitedb

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramlitedb - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

package.json
{
"name": "ramlitedb",
"version": "0.1.6",
"version": "0.1.7",
"description": "NoSQL Database for node.js with all data loaded in ram and backup in json file",

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

@@ -58,3 +58,4 @@ /**

pfsLib.write(_conf.user.backupFile, _conf.database).then(() => {
pfsLib.write(_conf.user.backupFile, JSON.stringify(_conf.database)).then(() => {
_conf.state.dataToBackup = false;

@@ -105,12 +106,11 @@ }).catch(() => {

var path = _conf.database;
key.split('.').forEach((node, depth) => {
if (!path[node]) {
key = key.split('.');
key.forEach((node, depth) => {
if (depth === (key.length-1)) {
path[node] = value;
} else if (path[node] === undefined) {
path[node] = {};
}
if (depth === (key.length-1)) {
path[node] = value;
} else {
path = path[node];
}
path = path[node];
})

@@ -120,3 +120,3 @@

_conf.state.dataToBackup = true;
if (_conf.state.backupOnSet) {
if (_conf.user.backupOnSet) {
setTimeout(_backup, 1);

@@ -123,0 +123,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