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

nedb-camo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nedb-camo - npm Package Compare versions

Comparing version 0.12.3 to 0.12.4

5

lib/clients/nedbclient.js
'use strict';
const _ = require('lodash');
const path = require('path');
const fs = require('fs');
const fs = require('../util').fs;
const Datastore = require('nedb-core');

@@ -20,3 +19,3 @@ const DatabaseClient = require('./client');

}
return path.join(dbLocation, collection) + '.db';
return `${dbLocation}/${collection}.db`;
};

@@ -23,0 +22,0 @@

18

lib/util.js

@@ -12,2 +12,18 @@ 'use strict';

exports.deepTraverse = deepTraverse;
var fs = {
stat: () => {
// STUB
},
unlink: () => {
// STUB
}
};
try {
fs = require('fs');
} catch (e) {
// FS is not supported in this environment
}
exports.deepTraverse = deepTraverse;
exports.fs = fs;
{
"name": "nedb-camo",
"version": "0.12.3",
"version": "0.12.4",
"description": "A class-based ES6 ODM for Mongo-like databases.",

@@ -5,0 +5,0 @@ "author": {

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