Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clever-orm

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clever-orm - npm Package Compare versions

Comparing version 1.0.12 to 1.1.0

15

module.js

@@ -66,3 +66,3 @@ var injector = require( 'injector' )

var as = i.camelize( i[ association.associationType === 'HasMany' ? 'pluralize' : 'singularize' ]( association.as ), false );
var as = i[ association.associationType === 'HasMany' ? 'pluralize' : 'singularize' ]( association.as );
models[ association.source.name ]._getters[ as ] = function() {

@@ -86,2 +86,10 @@ return this._model[ as ];

if ( where._model ) {
where = where._model;
} else if ( where instanceof Array && where[ 0 ]._model ) {
where = where.map( function( _model ) {
return _model._model;
});
}
this._model[ accessor ]( where, options )

@@ -116,2 +124,7 @@ .success( function( _model ) {

this.debug( '%s %s %s with second argument of ', modelName, assocType, assocTo[0], assocTo[1] );
if ( assocTo[ 1 ].through ) {
assocTo[ 1 ].through = this.models[ assocTo[ 1 ].through.replace( 'Model', '' ) ];
}
this.models[ modelName ][ assocType ]( this.models[ assocTo[0] ], assocTo[1] );

@@ -118,0 +131,0 @@ } else {

4

package.json
{
"name": "clever-orm",
"description": "CleverStack ORM (SQL) Module",
"version": "1.0.12",
"version": "1.1.0",
"main": "module.js",

@@ -36,3 +36,3 @@ "author": {

"mysql": "2.0.0-rc2",
"sequelize": "^1.7.x"
"sequelize": "~2.0.0-rc1"
},

@@ -39,0 +39,0 @@ "devDependencies": {

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