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

hydrate-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydrate-mongodb - npm Package Compare versions

Comparing version 0.2.21 to 0.2.22

2

package.json
{
"name": "hydrate-mongodb",
"description": "An Object Document Mapper (ODM) for MongoDB.",
"version": "0.2.21",
"version": "0.2.22",
"author": {

@@ -6,0 +6,0 @@ "name": "Artifact Health, LLC",

@@ -298,11 +298,9 @@ "use strict";

for (var i = 0; i < sorting.length; i++) {
var sortTuple = sorting[i];
var value = sorting[i];
// resolve field path
var context = this._mapping.resolve(sortTuple[0]);
var context = this._mapping.resolve(value[0]);
if (context.error) {
return callback(context.error);
}
var sortDocument = {};
sortDocument[context.resolvedPath] = sortTuple[1];
order.push(sortDocument);
order.push([context.resolvedPath, value[1]]);
}

@@ -309,0 +307,0 @@ callback(null, order);

export interface OrderDocument {
[field: string]: number;
}
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