You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mongoose

Package Overview
Dependencies
Maintainers
4
Versions
938
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose - npm Package Compare versions

Comparing version

to
8.16.1

9

lib/schema/bigint.js

@@ -180,3 +180,3 @@ 'use strict';

SchemaBigInt.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -189,2 +189,7 @@ $gt: handleSingle,

Object.defineProperty(SchemaBigInt.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/*!

@@ -209,3 +214,3 @@ * ignore

if ($conditional != null) {
handler = SchemaBigInt.$conditionalHandlers[$conditional];
handler = this.$conditionalHandlers[$conditional];

@@ -212,0 +217,0 @@ if (handler) {

@@ -238,4 +238,9 @@ 'use strict';

SchemaBoolean.$conditionalHandlers = { ...SchemaType.prototype.$conditionalHandlers };
const $conditionalHandlers = { ...SchemaType.prototype.$conditionalHandlers };
Object.defineProperty(SchemaBoolean.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/**

@@ -252,3 +257,3 @@ * Casts contents for queries.

if ($conditional != null) {
handler = SchemaBoolean.$conditionalHandlers[$conditional];
handler = this.$conditionalHandlers[$conditional];

@@ -255,0 +260,0 @@ if (handler) {

@@ -262,3 +262,3 @@ /*!

SchemaBuffer.prototype.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -275,2 +275,8 @@ $bitsAllClear: handleBitwiseOperator,

Object.defineProperty(SchemaBuffer.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/**

@@ -277,0 +283,0 @@ * Casts contents for queries.

@@ -392,3 +392,3 @@ /*!

SchemaDate.prototype.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -401,2 +401,6 @@ $gt: handleSingle,

Object.defineProperty(SchemaDate.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});

@@ -403,0 +407,0 @@ /**

@@ -217,3 +217,3 @@ /*!

SchemaDecimal128.prototype.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -226,2 +226,7 @@ $gt: handleSingle,

Object.defineProperty(SchemaDecimal128.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/**

@@ -228,0 +233,0 @@ * Returns this schema type's representation in a JSON schema.

@@ -200,3 +200,3 @@ 'use strict';

SchemaDouble.prototype.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -209,2 +209,7 @@ $gt: handleSingle,

Object.defineProperty(SchemaDouble.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/**

@@ -211,0 +216,0 @@ * Returns this schema type's representation in a JSON schema.

@@ -200,3 +200,3 @@ 'use strict';

SchemaInt32.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -213,2 +213,7 @@ $gt: handleSingle,

Object.defineProperty(SchemaInt32.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/*!

@@ -233,3 +238,3 @@ * ignore

if ($conditional != null) {
handler = SchemaInt32.$conditionalHandlers[$conditional];
handler = this.$conditionalHandlers[$conditional];

@@ -236,0 +241,0 @@ if (handler) {

@@ -403,3 +403,3 @@ 'use strict';

SchemaNumber.prototype.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -417,2 +417,7 @@ $bitsAllClear: handleBitwiseOperator,

Object.defineProperty(SchemaNumber.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/**

@@ -419,0 +424,0 @@ * Casts contents for queries.

@@ -263,3 +263,3 @@ /*!

SchemaObjectId.prototype.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -272,2 +272,7 @@ $gt: handleSingle,

Object.defineProperty(SchemaObjectId.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/*!

@@ -274,0 +279,0 @@ * ignore

@@ -664,6 +664,4 @@ 'use strict';

Object.defineProperty(SchemaString.prototype, '$conditionalHandlers', {
configurable: false,
enumerable: false,
writable: false,
value: Object.freeze($conditionalHandlers)
value: $conditionalHandlers
});

@@ -670,0 +668,0 @@

@@ -245,3 +245,3 @@ /*!

SchemaUUID.prototype.$conditionalHandlers = {
const $conditionalHandlers = {
...SchemaType.prototype.$conditionalHandlers,

@@ -262,2 +262,7 @@ $bitsAllClear: handleBitwiseOperator,

Object.defineProperty(SchemaUUID.prototype, '$conditionalHandlers', {
enumerable: false,
value: $conditionalHandlers
});
/**

@@ -264,0 +269,0 @@ * Casts contents for queries.

{
"name": "mongoose",
"description": "Mongoose MongoDB ODM",
"version": "8.16.0",
"version": "8.16.1",
"author": "Guillermo Rauch <guillermo@learnboost.com>",

@@ -6,0 +6,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display