Socket
Socket
Sign inDemoInstall

objection

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objection - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

9

lib/relations/ManyToManyRelation.js

@@ -5,3 +5,3 @@ 'use strict';

, Relation = require('./Relation')
, ownerJoinColumnAlias = '_join_';
, ownerJoinColumnAlias = 'objectiontmpjoin';

@@ -95,3 +95,6 @@ /**

builder.runAfterModelCreate(function (related) {
var relatedByOwnerId = _.groupBy(related, ownerJoinColumnAlias);
// The ownerJoinColumnAlias column name may have been changed by the `$parseDatabaseJson`
// method of the related model class. We need to do the same conversion here.
var ownerJoinPropAlias = self.relatedModelClass.columnNameToPropertyName(ownerJoinColumnAlias);
var relatedByOwnerId = _.groupBy(related, ownerJoinPropAlias);

@@ -103,3 +106,3 @@ _.each(owners, function (owner) {

_.each(related, function (rel) {
delete rel[ownerJoinColumnAlias];
delete rel[ownerJoinPropAlias];
});

@@ -106,0 +109,0 @@

{
"name": "objection",
"version": "0.2.3",
"version": "0.2.4",
"description": "An SQL-friendly ORM for Node.js",

@@ -5,0 +5,0 @@ "main": "objection.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