mongoose-hidden
Advanced tools
Comparing version
# Changelog | ||
1.5.2 | ||
- chore(package): update mongoose to version 5.0.0 | ||
- chore(package): update mocha to version 5.0.0 | ||
1.5.1 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "mongoose-hidden", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"author": "Michael Bøcker-Larsen <mblarsen@gmail.com>", | ||
@@ -38,3 +38,4 @@ "description": "Hides certain model properties when invoking toJSON or toObject.", | ||
"should": "^13.1.0" | ||
} | ||
}, | ||
"thanks": "https://flattr.com/@mblarsen" | ||
} |
@@ -12,6 +12,2 @@ # mongoose-hidden | ||
<a target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/okYdxs3cWxjapKfPcTg9nLwG/mblarsen/mongoose-hidden'> | ||
<img alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/okYdxs3cWxjapKfPcTg9nLwG/mblarsen/mongoose-hidden.svg' /> | ||
</a> | ||
# Install | ||
@@ -72,4 +68,2 @@ | ||
_since 0.7_ | ||
If you find yourself hiding the same properties over and over again you can initialize the plugin with the `hidden` option. | ||
@@ -128,4 +122,2 @@ | ||
_since 0.3.1_ | ||
Hiding of virtuals can be done as well. Be sure to include the plugin after you turn on virtuals. | ||
@@ -150,4 +142,2 @@ | ||
_since 0.6_ | ||
The `mongoose-hidden` is written as a transform function. If you implement your own transform functions be sure to add them to prior to applying the plugin. The plugin will then invoke that function before hiding properties. | ||
@@ -154,0 +144,0 @@ |
16
6.67%57881
-0.17%170
-5.56%