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.6.0 to 0.6.1

2

index.js

@@ -108,3 +108,3 @@ var Q, dot, mongoose;

ref = this.schema.paths[path].caster.options.ref;
through = this.schema.paths[path].caster.options.through;
through = this.schema.paths[path].caster.options.$through;
data = dot.get(this.get('_related'), path);

@@ -111,0 +111,0 @@ promises = [];

{
"name": "cascading-relations",
"version": "0.6.0",
"version": "0.6.1",
"description": "",

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

@@ -33,3 +33,4 @@ var barClass, barSchema, bazClass, bazSchema, fooClass, fooSchema, mongoose, relations, should;

type: mongoose.Schema.Types.ObjectId,
ref: 'Bar'
ref: 'Bar',
$through: '_foo'
}

@@ -142,2 +143,6 @@ ],

});
it('should have set the $through value on a relation array', function(done) {
this.foo._related._bars[0]._foo.toString().should.equal(this.foo._id.toString());
return done();
});
it('should cascade delete when designated', function(done) {

@@ -144,0 +149,0 @@ var deletedBarId, throughBarId;

Sorry, the diff of this file is not supported yet

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