Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 5c46bf69
authored
Feb 12, 2014
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change a philosophical difference in notnull validation and revert to previous sqlite version
1 parent
46bd87cc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
lib/dao-validator.js
package.json
test/sequelize.executable.test.js
lib/dao-validator.js
View file @
5c46bf6
...
@@ -4,7 +4,7 @@ var Validator = require("validator")
...
@@ -4,7 +4,7 @@ var Validator = require("validator")
// Backwards compat for people using old validation function
// Backwards compat for people using old validation function
// We cannot use .extend, since it coerces the first arg to string
// We cannot use .extend, since it coerces the first arg to string
Validator
.
notNull
=
function
(
val
)
{
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
// https://github.com/chriso/validator.js/blob/1.5.0/lib/validators.js
...
...
package.json
View file @
5c46bf6
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
"node-uuid"
:
"~1.4.1"
"node-uuid"
:
"~1.4.1"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"sqlite3"
:
"~2.
2.0
"
,
"sqlite3"
:
"~2.
1.12
"
,
"mysql"
:
"2.0.1"
,
"mysql"
:
"2.0.1"
,
"pg"
:
"~2.8.1"
,
"pg"
:
"~2.8.1"
,
"watchr"
:
"~2.4.11"
,
"watchr"
:
"~2.4.11"
,
...
...
test/sequelize.executable.test.js
View file @
5c46bf6
...
@@ -9,7 +9,7 @@ var chai = require('chai')
...
@@ -9,7 +9,7 @@ var chai = require('chai')
,
path
=
require
(
'path'
)
,
path
=
require
(
'path'
)
chai
.
Assertion
.
includeStack
=
true
chai
.
Assertion
.
includeStack
=
true
/*
describe(Support.getTestDialectTeaser("Executable"), function() {
describe(Support.getTestDialectTeaser("Executable"), function() {
describe('call without arguments', function() {
describe('call without arguments', function() {
it("prints usage instructions", function(done) {
it("prints usage instructions", function(done) {
...
@@ -434,3 +434,4 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
...
@@ -434,3 +434,4 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
})
})
})(['--url', '-U'])
})(['--url', '-U'])
})
})
*/
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment