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

sessionstore

Package Overview
Dependencies
Maintainers
2
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 1.0.1 to 1.0.2

.idea/.name

12

lib/databases/mongodb.js

@@ -134,3 +134,3 @@ 'use strict';

function requestClb(err, session_data) {
this.sessions.findOne({ _sessionid: sid }, function (err, session_data) {
if (err) {

@@ -154,11 +154,3 @@ if (callback) callback(err);

}
}
var query = { _sessionid: sid };
if (sess._id) {
query = { _id: sess._id };
}
this.sessions.findOne(query, requestClb);
});
},

@@ -165,0 +157,0 @@

@@ -90,3 +90,3 @@ 'use strict';

function requestClb(err, session_data) {
this.sessions.findOne({ _sessionid: sid }, function (err, session_data) {
if (err) {

@@ -110,10 +110,3 @@ if (callback) callback(err);

}
}
if (sess._id) {
this.sessions.get(sess._id, requestClb);
return;
}
this.sessions.findOne({ _sessionid: sid }, requestClb);
});
},

@@ -120,0 +113,0 @@

{
"author": "adrai",
"name": "sessionstore",
"version": "1.0.1",
"version": "1.0.2",
"private": false,

@@ -6,0 +6,0 @@ "main": "index.js",

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