From 2c4845591dd097eaba27757762e48230860c174d Mon Sep 17 00:00:00 2001 From: Bryce Kahle Date: Sun, 30 Apr 2017 17:01:29 -0400 Subject: [PATCH] Fix regression in Opera 11.10 This was a combination of `debug` using a reserved property name and uglify removing quotes for a reserved Object key literal name. Fixes #359 --- gulpfile.js | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 78bb8315..cd0466e8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -73,7 +73,7 @@ gulp.task('browserify:min', ['write-version'], function (cb) { source('sockjs.min.js'), buffer(), sourcemaps.init({ loadMaps: true }), - uglify({ compress: { pure_funcs: ['debug'] } }), + uglify({ compress: { pure_funcs: ['debug'] }, output: { beautify: false, keep_quoted_props: true } }), header(banner, { pkg: pkg }), sourcemaps.write('./'), gulp.dest('./build/') diff --git a/package.json b/package.json index 3501c82f..f6fa3889 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ } ], "dependencies": { - "debug": "^2.2.0", + "debug": "^2.6.6", "eventsource": "0.1.6", "faye-websocket": "~0.11.0", "inherits": "^2.0.1", @@ -40,9 +40,9 @@ "gulp-header": "^1.8.8", "gulp-rename": "~1.2.0", "gulp-replace": "^0.5.4", - "gulp-sourcemaps": "^2.4.0", - "gulp-uglify": "^2.0.0", "mocha": "^3.2.0", + "gulp-sourcemaps": "^2.6.0", + "gulp-uglify": "^2.1.2", "node-static": "^0.7.6", "proxyquire": "^1.7.10", "pump": "^1.0.2",