clever-odm
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,9 +0,7 @@ | ||
'use strict'; | ||
var fs = require( 'fs' ) | ||
, path = require( 'path' ) | ||
, appRoot = path.resolve(path.join(__dirname, '..', '..')) | ||
, utils = require(path.resolve(path.join(appRoot, 'lib', 'utils'))) | ||
, _ = require( 'underscore' ); | ||
var fs = require( 'fs' ) | ||
, path = require( 'path' ) | ||
, pkgJson = require( path.resolve( path.join( __dirname, '..', '..', 'package.json') ) ) | ||
, ormEnabled = pkgJson.bundledDependencies.indexOf( 'clever-orm' ) !== -1 | ||
, _ = require( 'underscore' ); | ||
module.exports = function( grunt ) { | ||
@@ -90,3 +88,3 @@ var dbTarget = grunt.option( 'module' ) || null | ||
if ( ormEnabled ) { | ||
if (utils.getModulePaths().map(function(module) { return module.split(path.sep);}).indexOf('clever-orm') !== -1) { | ||
grunt.registerTask( 'db', [ 'db:orm', 'db:odm' ] ); | ||
@@ -93,0 +91,0 @@ grunt.registerTask( 'db:rebase', [ 'db:ormRebase', 'db:odmRebase' ] ); |
{ | ||
"name": "clever-odm", | ||
"description": "CleverStack ODM (NoSQL) Module", | ||
"version": "2.0.0", | ||
"main": "module.js", | ||
"name" : "clever-odm", | ||
"description" : "CleverStack ODM (NoSQL) Module", | ||
"version" : "2.0.1", | ||
"main" : "module", | ||
"license" : "MIT", | ||
"author": { | ||
@@ -15,8 +16,19 @@ "name": "CleverStack", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/CleverStack/clever-odm.git" | ||
"type" : "git", | ||
"url" : "https://github.com/CleverStack/clever-odm.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/CleverStack/clever-odm/issues" | ||
"url" : "https://github.com/CleverStack/clever-odm/issues" | ||
}, | ||
"dependencies": { | ||
"mongoose" : "~3.8.22", | ||
"mongoose-bird" : "~0.0.1", | ||
"mongoose-dbref" : "~0.0.2", | ||
"mongoose-lifecycle" : "~1.0.0", | ||
"mongoose-deep-populate": "~1.0.1" | ||
}, | ||
"devDependencies": { | ||
"grunt" : "~0.4.2", | ||
"grunt-prompt" : "~1.1.0" | ||
}, | ||
"keywords": [ | ||
@@ -35,15 +47,3 @@ "cleverstack", | ||
"mongodb" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"mongoose": "~3.8.22", | ||
"mongoose-bird": "~0.0.1", | ||
"mongoose-dbref": "~0.0.2", | ||
"mongoose-lifecycle": "~1.0.0", | ||
"mongoose-deep-populate": "~1.0.1" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.2", | ||
"grunt-prompt": "~1.1.0" | ||
} | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
67741
1
1418