Socket
Socket
Sign inDemoInstall

@andrewscwei/mongodb-odm

Package Overview
Dependencies
87
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.49.0 to 0.50.0

2

build/core/Model.js

@@ -220,3 +220,3 @@ "use strict";

const collection = yield this.getCollection();
const results = yield collection.aggregate(this.pipeline(query).concat([{ $sample: { size: 1 } }])).toArray();
const results = yield collection.aggregate(this.pipeline().concat([{ $sample: { size: 1 } }])).toArray();
if (results.length !== 1)

@@ -223,0 +223,0 @@ throw new Error(`[${this.schema.model}] More or less than 1 random document found even though only 1 was supposed to be found.`);

{
"name": "@andrewscwei/mongodb-odm",
"version": "0.49.0",
"version": "0.50.0",
"description": "ODM for MongoDB",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc