New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-hidden

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-hidden - npm Package Compare versions

Comparing version

to
1.5.3

PULL_REQUEST_TEMPLATE.md

5

CHANGELOG.md
# 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 @@

5

package.json
{
"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 @@