mongoose-schema-extend
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -47,4 +47,4 @@ 'use strict'; | ||
this.paths[k].validators.forEach(function (validator, index) { | ||
if (validator.regexp instanceof RegExp) { | ||
newSchema.paths[k].validators[index].regexp = validator.regexp; | ||
if (validator.validator instanceof RegExp) { | ||
newSchema.paths[k].validators[index].validator = validator.validator; | ||
} | ||
@@ -51,0 +51,0 @@ }); |
{ | ||
"name": "mongoose-schema-extend", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "mongoose schema inheritance and discriminator key extension", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,7 @@ ## mongoose-schema-extend | ||
# Notice | ||
From version 0.2.1 mongoose-schema-extend is using harmony proxies. You will need to add the flag | ||
--harmony_proxies to your start command if you're using it, or use a previous version. | ||
# Usage | ||
@@ -7,0 +12,0 @@ |
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
19444
107