creationix / nstore

nStore is a simple, in-process key/value database for node.js
MIT License
392 stars 31 forks source link

Prevent error that happens when trying to read a value that was deleted before #26

Closed Pita closed 13 years ago

Pita commented 13 years ago

The index array saves a value with the length 0. When trying to read this value again JSON.parse fails. This commit prevents it from trying to parse the 0 length value. Instead it throws the same exception that gets thrown if a value doesn't exist

The other commit is just a .gitignore file with node_modules in it. This helps developing cause you can install the dependencies localy with npm