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

connect-session-knex

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-session-knex - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

8

index.js

@@ -85,5 +85,6 @@ 'use strict';

* @param {Object} store
* @param {number} interval
* @api private
*/
function dbCleanup(store) {
function dbCleanup(store, interval) {
return store.ready.then(function () {

@@ -98,2 +99,4 @@ var condition = 'expired < CAST(? as ' + timestampTypeName(store.knex) + ')';

.whereRaw(condition, dateAsISO(store.knex));
}).finally(function() {
setTimeout(dbCleanup, interval, store, interval).unref()
});

@@ -147,4 +150,3 @@ }

if (exists) {
dbCleanup(self);
self._clearer = setInterval(dbCleanup, options.clearInterval, self).unref();
dbCleanup(self, options.clearInterval);
}

@@ -151,0 +153,0 @@ return null;

{
"name": "connect-session-knex",
"description": "A knex.js session store for Express and Connect",
"version": "1.3.0",
"version": "1.3.1",
"main": "index.js",

@@ -6,0 +6,0 @@ "engines": {

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