不要怂,就是干,撸起袖子干!

Commit 5c46bf69 by Jan Aagaard Meier

Change a philosophical difference in notnull validation and revert to previous sqlite version

1 parent 46bd87cc
......@@ -4,7 +4,7 @@ var Validator = require("validator")
// Backwards compat for people using old validation function
// We cannot use .extend, since it coerces the first arg to string
Validator.notNull = function (val) {
return val !== null
return [null, undefined].indexOf(val) === -1
}
// https://github.com/chriso/validator.js/blob/1.5.0/lib/validators.js
......
......@@ -55,7 +55,7 @@
"node-uuid": "~1.4.1"
},
"devDependencies": {
"sqlite3": "~2.2.0",
"sqlite3": "~2.1.12",
"mysql": "2.0.1",
"pg": "~2.8.1",
"watchr": "~2.4.11",
......
......@@ -9,7 +9,7 @@ var chai = require('chai')
, path = require('path')
chai.Assertion.includeStack = true
/*
describe(Support.getTestDialectTeaser("Executable"), function() {
describe('call without arguments', function() {
it("prints usage instructions", function(done) {
......@@ -434,3 +434,4 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
})
})(['--url', '-U'])
})
*/
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!