You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
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

Comparing version 1.0.20 to 1.0.21

2

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

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

@@ -66,6 +66,5 @@ "use strict";

ModelOptions.relations[Key]) {
const Validated = await this.resolveSchema(ModelOptions.relations[Key].reference(), [Item[Key]], options);
Item[Key] = ["ManyToMany", "OneToMany"].includes(ModelOptions.relations[Key].type)
? Validated
: Validated[0];
const Many = Item[Key] instanceof Array;
const Validated = await this.resolveSchema(ModelOptions.relations[Key].reference(), Many ? Item[Key] : [Item[Key]], options);
Item[Key] = Many ? Validated : Validated[0];
}

@@ -72,0 +71,0 @@ else if (ModelOptions.fields[Key] || ModelOptions.metas[Key])

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc