Skip to content

Commit 1874cdf

Browse files
committed
fix(package.json): updated dependencies that were causing issues with npm install
closes #106, #107
1 parent e50383a commit 1874cdf

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Diff for: templates/common/_package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
"dependencies": {
55
"express": "~3.4.3",
66
"lodash": "~2.4.1"<% if (mongo) { %>,
7-
"mongoose": "~3.5.5"<% } %><% if (mongoPassportUser) { %>,
8-
"mongoose-unique-validator": "~0.3.0",
7+
"mongoose": "~3.8.8"<% } %><% if (mongoPassportUser) { %>,
98
"connect-mongo": "~0.4.0",
10-
"passport": "latest",
11-
"passport-local": "latest"<% } %><% if (jade) { %>,
12-
"jade": "latest"<% } %><% if (!jade) { %>,
9+
"passport": "~0.2.0",
10+
"passport-local": "~0.1.6"<% } %><% if (jade) { %>,
11+
"jade": "~1.2.0"<% } %><% if (!jade) { %>,
1312
"ejs": "~0.8.4"<% } %>
1413
},
1514
"devDependencies": {
@@ -24,8 +23,7 @@
2423
"grunt-contrib-copy": "~0.4.1",
2524
"grunt-contrib-cssmin": "~0.7.0",
2625
"grunt-contrib-htmlmin": "~0.1.3",
27-
"jpegtran-bin": "0.2.0",
28-
"grunt-contrib-imagemin": "~0.3.0",
26+
"grunt-contrib-imagemin": "~0.5.0",
2927
"grunt-contrib-jshint": "~0.7.1",
3028
"grunt-contrib-uglify": "~0.2.0",
3129
"grunt-contrib-watch": "~0.5.2",

Diff for: templates/javascript/controllers/signup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ angular.module('<%= scriptAppName %>')
2525
// Update validity of form fields that match the mongoose errors
2626
angular.forEach(err.errors, function(error, field) {
2727
form[field].$setValidity('mongoose', false);
28-
$scope.errors[field] = error.type;
28+
$scope.errors[field] = error.message;
2929
});
3030
});
3131
}

0 commit comments

Comments
 (0)