Update deps
This commit is contained in:
parent
6988e1bdea
commit
2422c4c6f0
|
@ -324,6 +324,9 @@ MySQL.prototype.toDatabase = function (prop, val, forCreate) {
|
|||
return this.client.escape(val);
|
||||
}
|
||||
if (prop.type === Number) {
|
||||
if (isNaN(val)) {
|
||||
val = null;
|
||||
}
|
||||
return this.client.escape(val);
|
||||
}
|
||||
if (prop.type === Date) {
|
||||
|
|
15
package.json
15
package.json
|
@ -8,15 +8,16 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"loopback-connector": "1.x",
|
||||
"mysql": "~2.5.0",
|
||||
"async": "~0.9.0",
|
||||
"debug": "~2.0.0"
|
||||
"mysql": "^2.5.4",
|
||||
"async": "^0.9.0",
|
||||
"debug": "^2.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"loopback-datasource-juggler": "^2.15.0",
|
||||
"should": "~1.3.0",
|
||||
"mocha": "~1.20.1",
|
||||
"rc": "~0.4.0"
|
||||
"bluebird": "~2.9.10",
|
||||
"loopback-datasource-juggler": "^2.17.0",
|
||||
"mocha": "^2.1.0",
|
||||
"rc": "^0.6.0",
|
||||
"should": "^5.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -197,7 +197,7 @@ describe('mysql', function () {
|
|||
posts.should.have.lengthOf(1);
|
||||
post = posts[0];
|
||||
post.should.have.property('title', 'b');
|
||||
post.should.not.have.property('content');
|
||||
post.should.have.property('content', undefined);
|
||||
should.not.exist(post.id);
|
||||
|
||||
done();
|
||||
|
|
Loading…
Reference in New Issue