Socket
Socket
Sign inDemoInstall

nedb

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nedb - npm Package Compare versions

Comparing version 0.11.1 to 0.11.2

4

lib/datastore.js

@@ -315,3 +315,5 @@ var customUtils = require('./customUtils')

} else {
newDoc._id = newDoc._id || this.createNewId();
if (newDoc._id === undefined) {
newDoc._id = this.createNewId();
}
preparedDoc = model.deepCopy(newDoc);

@@ -318,0 +320,0 @@ model.checkObject(preparedDoc);

{
"name": "nedb",
"version": "0.11.1",
"version": "0.11.2",
"author": {

@@ -5,0 +5,0 @@ "name": "Louis Chatriot",

@@ -15,5 +15,9 @@ # NeDB (Node embedded database)

You want to help out? <a href="#contribute">You can contribute time or bitcoins, check out how!</a>
## Support NeDB development
No time to <a href="#help-out">help out</a>? You can support NeDB development by sending money or bitcoins!
Money: [![Donate to author](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=louis%2echatriot%40gmail%2ecom&lc=US&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHostedGuest)
Bitcoin address: 1dDZLnWpBbodPiN8sizzYrgaz5iahFyb1
## Installation, tests

@@ -598,3 +602,3 @@ Module name on npm is `nedb`.

As of v0.11, NeDB is also persistent on the browser. To use this, simply create the collection with the `filename` option which will be the name of the `localStorage` variable storing data. Persistence should work on all browsers where NeDB works.
As of v0.11, NeDB is also persistent on the browser. To use this, simply create the collection with the `filename` option which will be the name of the `localStorage` variable storing data. Persistence should work on all browsers where NeDB works. Also, keep in mind that `localStorage` has size constraints, so it's probably a good idea to set recurring compaction every 2-5 minutes to save on space if your client app needs a lot of updates and deletes. See <a href="#compacting-the-database">database compaction</a> for more details on the append-only format used by NeDB.

@@ -629,10 +633,7 @@ **Browser persistence is still young! It has been tested on most major browsers but please report any bugs you find**

## Contribute!
You want to help? You can contribute time or bitcoins.
### Helping on the codebase
## Help out
Issues reporting and pull requests are always appreciated. For issues, make sure to always include a code snippet and describe the expected vs actual behavior. If you send a pull request, make sure to stick to NeDB's coding style and always test all the code you submit. You can look at the current tests to see how to do it
### Bitcoins
You don't have time? You can support NeDB by sending bitcoins to this adress: 1dDZLnWpBbodPiN8sizzYrgaz5iahFyb1
You don't have time? You can support NeDB by sending bitcoins to this adress:

@@ -639,0 +640,0 @@

Sorry, the diff of this file is too big to display

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