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.1.1 to 1.1.2

15

Gruntfile.js

@@ -6,3 +6,4 @@ 'use strict';

, pkgJson = require( path.resolve( path.join( __dirname, '..', '..', 'package.json') ) )
, odmEnabled = pkgJson.bundledDependencies.indexOf( 'clever-odm' ) !== -1;
, odmEnabled = pkgJson.bundledDependencies.indexOf( 'clever-odm' ) !== -1
, _ = require( 'underscore' );

@@ -101,11 +102,9 @@ module.exports = function( grunt ) {

grunt.registerTask( 'cleverOrmCreateConfig', 'Creates a .json config file for database credentials', function ( ) {
var conf = grunt.config( 'cleverstackorm' )
, obj = {
'clever-orm': { db: { options: {} } }
}
, env = process.env.NODE_ENV ? process.env.NODE_ENV.toLowerCase() : 'local'
, file = path.join( process.cwd( ), 'config', env + '.json' );
var conf = grunt.config( 'cleverstackorm' )
, obj = require( path.resolve( path.join( process.cwd(), 'modules', 'clever-orm', 'config', 'default.json' ) ) )
, env = process.env.NODE_ENV ? process.env.NODE_ENV.toLowerCase() : 'local'
, file = path.join( process.cwd( ), 'config', env + '.json' );
if ( fs.existsSync( file ) ) {
obj = require( file );
obj = _.extend( obj, require( file ) );
}

@@ -112,0 +111,0 @@

@@ -94,8 +94,8 @@ var injector = require( 'injector' )

this._model[ accessor ]( where, options )
.success( function( _model ) {
.then( function( _model ) {
resolve( _model );
})
.error( reject );
.catch( reject );
} else {
this._model[ accessor ].success( resolve ).error( reject );
this._model[ accessor ].then( resolve ).catch( reject );
}

@@ -102,0 +102,0 @@ }.bind( this ))

{
"name": "clever-orm",
"description": "CleverStack ORM (SQL) Module",
"version": "1.1.1",
"version": "1.1.2",
"main": "module.js",

@@ -6,0 +6,0 @@ "author": {

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