Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-schema-extend

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-schema-extend - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc