Skip to content

Commit

Permalink
Update lodash, maxmin and dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaraj committed Jan 29, 2016
1 parent a6dd1cb commit 2ff0283
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v0.11.1:
date: 2016-01-29
changes:
- switch to lodash ^4.0.1
- switch to grunt-contrib-clean ^0.7.0
- switch to grunt-contrib-jshint ^0.12.0
v0.11.0:
date: 2015-11-20
changes:
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-contrib-uglify",
"description": "Minify files with UglifyJS",
"version": "0.11.0",
"version": "0.11.1",
"author": {
"name": "Grunt Team",
"url": "http://gruntjs.com/"
Expand All @@ -16,17 +16,17 @@
},
"dependencies": {
"chalk": "^1.0.0",
"lodash": "^3.2.0",
"maxmin": "^1.0.0",
"lodash": "^4.0.1",
"maxmin": "^2.0.0",
"uglify-js": "~2.6.0",
"uri-path": "^1.0.0"
},
"devDependencies": {
"grunt": "^0.4.2",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-clean": "^0.7.0",
"grunt-contrib-internal": "^0.4.12",
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-jshint": "^0.12.0",
"grunt-contrib-nodeunit": "^0.4.0"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion tasks/lib/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var path = require('path');
var UglifyJS = require('uglify-js');
var _ = require('lodash');
var uriPath = require('uri-path');
var getOutputOptions;

exports.init = function(grunt) {
var exports = {};
Expand Down Expand Up @@ -196,7 +197,7 @@ exports.init = function(grunt) {
return result;
};

var getOutputOptions = function(options, dest) {
getOutputOptions = function(options, dest) {
var outputOptions = {
beautify: false,
source_map: null
Expand Down
7 changes: 4 additions & 3 deletions tasks/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
var path = require('path');
var chalk = require('chalk');
var maxmin = require('maxmin');
var err;

// Return the relative path from file1 => file2
function relativePath(file1, file2) {
Expand Down Expand Up @@ -98,7 +99,7 @@ module.exports = function(grunt) {
try {
options.generatedSourceMapName = mapNameGenerator(f.dest);
} catch (e) {
var err = new Error('SourceMap failed.');
err = new Error('SourceMap failed.');
err.origError = e;
grunt.fail.warn(err);
}
Expand All @@ -114,7 +115,7 @@ module.exports = function(grunt) {
try {
options.sourceMapIn = mapInNameGenerator(src[0]);
} catch (e) {
var err = new Error('SourceMapInName failed.');
err = new Error('SourceMapInName failed.');
err.origError = e;
grunt.fail.warn(err);
}
Expand All @@ -139,7 +140,7 @@ module.exports = function(grunt) {
result = uglify.minify(src, f.dest, options);
} catch (e) {
console.log(e);
var err = new Error('Uglification failed.');
err = new Error('Uglification failed.');
if (e.message) {
err.message += '\n' + e.message + '. \n';
if (e.line) {
Expand Down

0 comments on commit 2ff0283

Please sign in to comment.