New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dvpnt/mongodbext-relations

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dvpnt/mongodbext-relations - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

15

lib/index.js

@@ -7,2 +7,3 @@ 'use strict';

var relationHooks = require('./relationHooks');
var utils = require('./utils');

@@ -56,6 +57,14 @@ var createEmbedder = function(options) {

preparedRelation.onDelete = relation.onDelete || defaults.onDelete;
preparedRelation.onUpdate = relation.onUpdate || defaults.onUpdate;
preparedRelation.onReplace = relation.onReplace || defaults.onReplace;
preparedRelation.onDelete = utils.has(relation, 'onDelete') ?
relation.onDelete :
defaults.onDelete;
preparedRelation.onUpdate = utils.has(relation, 'onUpdate') ?
relation.onUpdate :
defaults.onUpdate;
preparedRelation.onReplace = utils.has(relation, 'onReplace') ?
relation.onReplace :
defaults.onReplace;
var fieldPath = field.replace('.$', '');

@@ -62,0 +71,0 @@ preparedRelation.paths = {

2

package.json
{
"name": "@dvpnt/mongodbext-relations",
"version": "2.0.0",
"version": "2.0.1",
"description": "mongodbext plugin that bring relations between collections",

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

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