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.5 to 1.0.6

2

package.json

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

},
"version": "1.0.5",
"version": "1.0.6",
"scripts": {

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

@@ -725,3 +725,3 @@ 'use strict'

target.modelQueryBuilder[key](queries)
} else if (_.isObject(conditions)) {
} else if (_.isPlainObject(conditions)) {
_.forEach(conditions, (c, k) => {

@@ -772,6 +772,7 @@ if (!_.isFunction(target.modelQueryBuilder[k])) {

debug('max', target.HostModel.collection, $match, $group)
connection.collection(target.HostModel.collection).aggregate([{$match}, {$group}], (err, result) => {
if (err) reject(err)
resolve(groupBy ? result : result[0].max)
})
connection.collection(target.HostModel.collection)
.aggregate([{$match}, {$group}], (err, result) => {
if (err) reject(err)
resolve(groupBy ? result : (_.isEmpty(result) ? null : result[0].max))
})
})

@@ -802,3 +803,3 @@ }

if (err) reject(err)
resolve(groupBy ? result : result[0].min)
resolve(groupBy ? result : (_.isEmpty(result) ? null : result[0].min))
})

@@ -830,3 +831,3 @@ })

if (err) reject(err)
resolve(groupBy ? result : result[0].sum)
resolve(groupBy ? result : (_.isEmpty(result) ? 0 : result[0].max))
})

@@ -858,3 +859,3 @@ })

if (err) reject(err)
resolve(groupBy ? result : result[0].avg)
resolve(groupBy ? result : (_.isEmpty(result) ? null : result[0].avg))
})

@@ -861,0 +862,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