sails-generate-model
Advanced tools
Comparing version 0.10.11 to 0.10.12
@@ -93,3 +93,3 @@ /** | ||
// Make sure there aren't duplicates | ||
if (_(attributes).pluck('name').uniq().valueOf().length !== attributes.length) { | ||
if (_.uniq(_.pluck(attributes, 'name')).length !== attributes.length) { | ||
return cb.invalid('Duplicate attributes not allowed!'); | ||
@@ -96,0 +96,0 @@ } |
{ | ||
"name": "sails-generate-model", | ||
"version": "0.10.11", | ||
"version": "0.10.12", | ||
"description": "Generate a model for a Sails app.", | ||
@@ -19,3 +19,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"lodash": ">=3.9.x", | ||
"lodash": "~2.4.0", | ||
"merge-defaults": ">=0.1.0", | ||
@@ -22,0 +22,0 @@ "underscore.string": "~2.3.3" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
16333
+ Addedlodash@2.4.2(transitive)
- Removedlodash@4.17.21(transitive)
Updatedlodash@~2.4.0