Skip to content

Commit

Permalink
fix: bump kareem -> 2.3.1 to throw readable error if middleware callb…
Browse files Browse the repository at this point in the history
…ack isnt a function

Fix #8087
  • Loading branch information
vkarpov15 committed Aug 23, 2019
1 parent 5996613 commit 264a1b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,7 @@ reserved.schema =
reserved.toObject =
reserved.validate =
reserved.remove =
reserved.populated =
// hooks.js
reserved._pres = reserved._posts = 1;
reserved.populated = 1;

/*!
* Document keys to print warnings for
Expand Down Expand Up @@ -1290,7 +1288,6 @@ Schema.prototype.queue = function(name, args) {
* @param {Boolean} [options.document] If `name` is a hook for both document and query middleware, set to `true` to run on document middleware.
* @param {Boolean} [options.query] If `name` is a hook for both document and query middleware, set to `true` to run on query middleware.
* @param {Function} callback
* @see hooks.js https://github.com/bnoguchi/hooks-js/tree/31ec571cef0332e21121ee7157e0cf9728572cc3
* @api public
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"async": "2.6.2",
"bson": "~1.1.1",
"kareem": "2.3.0",
"kareem": "2.3.1",
"mongodb": "3.2.7",
"mongodb-core": "3.2.7",
"mongoose-legacy-pluralize": "1.0.2",
Expand Down

0 comments on commit 264a1b4

Please sign in to comment.