Socket
Socket
Sign inDemoInstall

@oridune/epic-odm

Package Overview
Dependencies
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oridune/epic-odm - npm Package Compare versions

Comparing version 1.0.32 to 1.0.33

2

package.json
{
"name": "@oridune/epic-odm",
"version": "1.0.32",
"version": "1.0.33",
"description": "Install 1 ODM and code once with any database driver.",

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

@@ -407,2 +407,3 @@ "use strict";

delete Dataset["$inc"];
const Set = Object.keys(Dataset).length ? { $set: Dataset } : undefined;
// Create New Document

@@ -412,3 +413,3 @@ const Results = await (await this.getConnectionObject())

.collection(ModelOptions.getResolvedName())
.updateMany({ _id: { $in: targets.map((_) => _._id) } }, Object.assign({ $set: Dataset }, Incrementor), { session: connection });
.updateMany({ _id: { $in: targets.map((_) => _._id) } }, Object.assign(Object.assign({}, Set), Incrementor), { session: connection });
return { updatedCount: Results.modifiedCount };

@@ -415,0 +416,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