Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UglifyJS to 3.13.3 #554

Merged
merged 3 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ module.exports = function(grunt) {
src: 'test/fixtures/src/simple.js',
dest: 'tmp/wrap.js',
options: {
compress: false,
mangle: false,
wrap: 'testExport'
}
Expand Down
2,907 changes: 1,183 additions & 1,724 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-contrib-uglify",
"description": "Minify JavaScript files with UglifyJS",
"version": "5.0.0",
"version": "5.0.1",
"author": {
"name": "Grunt Team",
"url": "https://gruntjs.com/"
Expand All @@ -18,7 +18,7 @@
"dependencies": {
"chalk": "^2.4.1",
"maxmin": "^2.1.0",
"uglify-js": "^3.5.0",
"uglify-js": "^3.13.3",
"uri-path": "^1.0.0"
},
"devDependencies": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions test/fixtures/expected/maxLineLen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
(function(){var list,math,square;square=function(x){return x*x},list=[1,2,3,4,5],math={
root:Math.sqrt,square:square,cube:function(x){return x*square(x)}},
"undefined"!=typeof elvis&&null!=elvis&&alert("I knew it!"),function(accum$){for(var num,i$=0,
length$=list.length;i$<length$;++i$)num=list[i$],accum$.push(math.cube(num));return accum$}.call(
this,[])}).call(this);
!function(){var square=function(x){return x*x},list=[1,2,3,4,5],math={root:Math.sqrt,square:square,
cube:function(x){return x*square(x)}};"undefined"!=typeof elvis&&null!=elvis&&alert("I knew it!"),
function(accum$){for(var i$=0,length$=list.length;i$<length$;++i$)accum$.push(math.cube(list[i$]))
;return accum$}.call(this,[])}.call(this);
2 changes: 1 addition & 1 deletion test/fixtures/expected/source_map_custom_name
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":3,"sources":["../test/fixtures/src/simple.js"],"names":["longNameA","longNameB","longFunctionC","argumentC","argumentD","result"],"mappings":"AAGA,IAAIA,UAAY,EAEZC,UAAY,EAEhB,SAASC,cAAcC,EAAUC,GAC/B,OAAOJ,UAAYC,UAAYE,EAAYC,EAG7C,IAAIC,OAASH,cAAc,EAAE","file":"sourcemap_customName.js"}
{"version":3,"file":"sourcemap_customName.js","sources":["../test/fixtures/src/simple.js"],"names":["longNameA","longNameB","longFunctionC","argumentC","argumentD","result"],"mappings":"AAGA,IAAIA,UAAY,EAEZC,UAAY,EAEhB,SAASC,cAAcC,EAAUC,GAC/B,OAAOJ,UAAYC,UAAYE,EAAYC,EAG7C,IAAIC,OAASH,cAAc,EAAE"}
2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_basic.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_customRoot.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_functionName.js.fn.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_sources.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemapin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemapin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemapin_customUrl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemapin_customUrl.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemapin_sources.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemapin_sources.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemaps_multiple1.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemaps_multiple2.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/expected/wrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.