@meanie/mongoose-to-json
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -25,3 +25,3 @@ 'use strict'; | ||
schema.options.toJSON = Object.assign(schema.options.toJSON || {}, { | ||
transform(doc, ret) { | ||
transform(doc, ret, options) { | ||
@@ -45,3 +45,3 @@ //Remove private paths | ||
if (transform) { | ||
return transform(doc, ret); | ||
return transform(doc, ret, options); | ||
} | ||
@@ -48,0 +48,0 @@ }, |
{ | ||
"name": "@meanie/mongoose-to-json", | ||
"description": "A plugin for Mongoose to normalize JSON output", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"homepage": "https://github.com/meanie/mongoose-to-json", | ||
@@ -6,0 +6,0 @@ "author": { |
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
8666