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

adonis-lucid-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-lucid-mongodb - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32

2

package.json

@@ -8,3 +8,3 @@ {

},
"version": "1.0.31",
"version": "1.0.32",
"scripts": {

@@ -11,0 +11,0 @@ "lint": "standard",

@@ -718,3 +718,5 @@ 'use strict'

'intersects',
'regex'
'regex',
'maxDistance',
'minDistance'
]

@@ -741,5 +743,10 @@ _.forEach(arguments[0], (conditions, key) => {

}
target.modelQueryBuilder.where(key)['near'](point)
if (conditions.minDistance) {
point.minDistance = conditions.minDistance
}
target.modelQueryBuilder.where(key).near(point)
} else if (_(supportMethods).includes(k)) {
target.modelQueryBuilder.where(key)[k](c)
if (k !== 'maxDistance' && k !== 'minDistance') {
target.modelQueryBuilder.where(key)[k](c)
}
} else {

@@ -746,0 +753,0 @@ throw new CE.InvalidArgumentException(`Method "$${k}" is not support by query builder`)

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