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

sessionstore

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sessionstore - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

.npmignore

28

lib/databases/couchDb.js

@@ -41,12 +41,26 @@ var util = require(process.binding('natives').util ? 'util' : 'sys')

db.save('_design/collection', {
views: {
findAll: {
map: function(doc) {
emit(doc.collectionName, doc);
db.get('_design/collection', function(err, obj) {
var view = {
views: {
findAll: {
map: function(doc) {
emit(doc.collectionName, doc);
}
}
}
};
if (err && err.error == 'not_found') {
db.save('_design/collection', view, function(err) {
if (callback) { return callback(null); }
});
} else if (err) {
if (callback) { return callback(err); }
} else {
db.save('_design/collection', obj._rev, view, function(err) {
if (callback) { return callback(null); }
});
}
}, function(err) {
if (callback) { return callback(err); }
});

@@ -53,0 +67,0 @@ }

{
"author": "adrai",
"name": "sessionstore",
"version": "0.1.2",
"version": "0.2.0",
"private": false,

@@ -24,3 +24,3 @@ "main": "index.js",

"description": "Sessionstore is a node.js module for multiple databases. It can be very useful if you work with express or connect.",
"keywords" : [
"keywords": [
"orm",

@@ -27,0 +27,0 @@ "mongodb",

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