Comparing version 0.8.0 to 0.9.0
@@ -47,3 +47,2 @@ /** | ||
}) | ||
.then(this.controller.readOne.bind(null, query)) | ||
.then(this.mkSuccessHandler(req, res, enums.CrudOps.UPDATE)) | ||
@@ -50,0 +49,0 @@ .catch(this.mkErrorHandler(req, res, enums.CrudOps.UPDATE)); |
{ | ||
"name": "crude", | ||
"description": "Creates CRUD RESTfull endpoints for a given route", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"homepage": "https://github.com/thanpolas/crude", | ||
@@ -35,3 +35,3 @@ "author": { | ||
"pagination": "~0.4.3", | ||
"lodash": "~3.10.0", | ||
"lodash": "~3.10.1", | ||
"middlewarify": "~1.0.0", | ||
@@ -45,10 +45,10 @@ "cip": "~1.0.0", | ||
"crude-test": "^0.0.1", | ||
"crude-test-case": "^0.0.5", | ||
"crude-test-case": "^0.0.6", | ||
"sinon": "~1.15.4", | ||
"mocha": "~2.2.5", | ||
"mocha": "~2.3.0", | ||
"chai": "~3.2.0", | ||
"grunt": "~0.4.5", | ||
"grunt-release": "~0.13.0", | ||
"mongoose": "^4.0.8", | ||
"supertest": "^1.0.1", | ||
"mongoose": "^4.1.5", | ||
"supertest": "^1.1.0", | ||
"sinon-chai": "^2.8.0", | ||
@@ -55,0 +55,0 @@ "grunt-contrib-jshint": "^0.11.2", |
@@ -56,2 +56,4 @@ # Crude | ||
- **v0.9.0**, *03 Sep 2015* | ||
- No longer performs a "readOne" after an update operation, this can potentially be a breaking change for you. | ||
- **v0.8.0**, *28 Jul 2015* | ||
@@ -58,0 +60,0 @@ - Will now return an HTTP Status 200 when no results for reading multiple records (used to return 404). |
@@ -67,3 +67,3 @@ /** | ||
it('should work on update', function (done) { | ||
this.ctrl.readOne.throws(this.err); | ||
this.ctrl.update.throws(this.err); | ||
this.reqres.req.params.id = 'one'; | ||
@@ -131,3 +131,3 @@ return this.crude._update(this.reqres.req, this.reqres.res) | ||
it('should work on update', function (done) { | ||
this.ctrl.readOne.throws(this.err); | ||
this.ctrl.update.throws(this.err); | ||
this.reqres.req.params.id = 'one'; | ||
@@ -134,0 +134,0 @@ return this.crude._update(this.reqres.req, this.reqres.res) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76121
36
102
1809
Updatedlodash@~3.10.1