Socket
Socket
Sign inDemoInstall

cascading-relations

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cascading-relations - npm Package Compare versions

Comparing version 0.7.7 to 0.7.8

10

index.js

@@ -28,7 +28,6 @@ var Q, dot, mongoose, _;

schema.methods.$__movePopulated = function() {
var info, orig, path, val, _ref, _results;
var info, orig, path, val, _ref;
if (this.$__.populated != null) {
this._related = {};
_ref = this.$__.populated;
_results = [];
for (path in _ref) {

@@ -38,6 +37,9 @@ info = _ref[path];

orig = dot.get(this, path);
if (orig instanceof Array) {
orig.push = Array.prototype.push;
}
dot.set(this, path, val, true);
_results.push(dot.set(this._related, path, orig, true));
dot.set(this._related, path, orig, true);
}
return _results;
return delete this.$__.populated[path];
}

@@ -44,0 +46,0 @@ };

2

package.json
{
"name": "cascading-relations",
"version": "0.7.7",
"version": "0.7.8",
"description": "Alternate populate/save/delete functionality for mongoose to allow for cascading relations",

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

Sorry, the diff of this file is not supported yet

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