Skip to content

Commit 264554f

Browse files
committedSep 6, 2021
fix: upgrade to mpath v0.8.4 re: security issue
Note that the security issue in earlier versions of mpath does **not** affect Mongoose Fix #10683
1 parent fc5fc7e commit 264554f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎lib/document.js

-2
Original file line numberDiff line numberDiff line change
@@ -1368,8 +1368,6 @@ Document.prototype.$set = function $set(path, val, type, options) {
13681368
this.unmarkModified(path);
13691369
}
13701370
}
1371-
} else {
1372-
console.log('No shouldSet', path);
13731371
}
13741372

13751373
if (schema.$isSingleNested && (this.isDirectModified(path) || val == null)) {

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"kareem": "2.3.2",
2626
"mongodb": "3.6.11",
2727
"mongoose-legacy-pluralize": "1.0.2",
28-
"mpath": "0.8.3",
28+
"mpath": "0.8.4",
2929
"mquery": "3.2.5",
3030
"ms": "2.1.2",
3131
"optional-require": "1.0.x",

0 commit comments

Comments
 (0)
Please sign in to comment.