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.0.8 to 1.0.9

6

History.md

@@ -1,4 +0,8 @@

1.0.7 (2014-12-13)
1.0.9 (2015-04-04)
==================
* Fix issues where fixes issues where mariaDB queries weren't being handled the same as mysql (Dan Weber)
1.0.8 (2014-12-13)
==================
* PostgreSQL bugfixes. Now building on Travis CI.

@@ -5,0 +9,0 @@

8

lib/connect-session-knex.js

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

function timestampTypeName(knex) {
return (knex.client.dialect === 'mysql') ? 'DATETIME' : 'timestamp';
return (['mysql', 'mariasql'].indexOf(knex.client.dialect) > -1) ? 'DATETIME' : 'timestamp';
}

@@ -70,3 +70,3 @@

table.json('sess').notNullable();
if (that.knex.client.dialect === 'mysql') {
if (['mysql', 'mariasql'].indexOf(that.knex.client.dialect) > -1) {
table.dateTime('expired').notNullable();

@@ -187,4 +187,4 @@ } else {

});
} else if (that.knex.client.dialect === 'mysql') {
// mysql optimized query
} else if (['mysql', 'mariasql'].indexOf(that.knex.client.dialect) > -1) {
// mysql/mariaDB optimized query
return that.ready.then(function () {

@@ -191,0 +191,0 @@ return that.knex.raw(mysqlfastq, [sid, new Date(expired).toISOString(), sess ])

{
"name": "connect-session-knex",
"description": "A knex.js session store for Express and Connect",
"version": "1.0.8",
"version": "1.0.9",
"main": "lib/connect-session-knex",

@@ -22,11 +22,11 @@ "engines": {

"devDependencies": {
"connect": "^3.3.3",
"express-session": "^1.9.3",
"connect": "^3.3.4",
"express-session": "^1.10.2",
"knex": "^0.7.3",
"mocha": "^2.0.1",
"mysql": "^2.5.3",
"pg": "^4.1.1",
"should": "^4.3.0",
"sqlite3": "^3.0.4"
"mocha": "^2.1.0",
"mysql": "^2.5.4",
"pg": "^4.2.0",
"should": "^5.0.0",
"sqlite3": "^3.0.5"
}
}

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

it('it should gracefully handle retrieving an unkonwn session', function(done) {
it('it should gracefully handle retrieving an unknown session', function(done) {
this.store.get('hope-and-change', function(err, rows) {

@@ -145,3 +145,3 @@ should.not.exist(err, 'get() unknown session returned an error');

it('it should gracefully handle retrieving an unkonwn session', function(done) {
it('it should gracefully handle retrieving an unknown session', function(done) {
this.store.get('hope-and-change', function(err, rows) {

@@ -226,3 +226,3 @@ should.not.exist(err, 'get() unknown session returned an error');

it('it should gracefully handle retrieving an unkonwn session', function(done) {
it('it should gracefully handle retrieving an unknown session', function(done) {
this.store.get('hope-and-change', function(err, rows) {

@@ -229,0 +229,0 @@ should.not.exist(err, 'get() unknown session returned an error');

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