Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-uglify

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-uglify - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

7

CHANGELOG.md
# gulp-uglify changelog
## 0.3.2
- Removed the PluginError factory wrapper
- Removed test that was failing due to gulp-util issue.
- Tests should end the streams they are writing to.
- Update dependencies. Fixes #44. Fixes #42.
## 0.3.1

@@ -4,0 +11,0 @@

9

index.js

@@ -5,4 +5,5 @@ 'use strict';

merge = require('deepmerge'),
uglifyError = require('./lib/error.js'),
reSourceMapComment = /\n\/\/# sourceMappingURL=.+?$/;
PluginError = require('gulp-util/lib/PluginError'),
reSourceMapComment = /\n\/\/# sourceMappingURL=.+?$/,
pluginName = 'gulp-uglify';

@@ -20,3 +21,3 @@ module.exports = function(opt) {

if (file.isStream()) {
return callback(uglifyError('Streaming not supported', {
return callback(new PluginError(pluginName, 'Streaming not supported', {
fileName: file.path,

@@ -56,3 +57,3 @@ showStack: false

} catch (e) {
return callback(uglifyError(e.message, {
return callback(new PluginError(pluginName, e.message, {
fileName: file.path,

@@ -59,0 +60,0 @@ lineNumber: e.line,

{
"name": "gulp-uglify",
"description": "Minify files with UglifyJS.",
"version": "0.3.1",
"version": "0.3.2",
"author": "Terin Stock <terinjokes@gmail.com>",
"bugs": "https://github.com/terinjokes/gulp-uglify/issues",
"dependencies": {
"deepmerge": "~0.2.7",
"gulp-util": "~2.2.14",
"through2": "~0.4.0",
"uglify-js": "~2.4.6"
"deepmerge": ">=0.2.7 <0.3.0-0",
"gulp-util": ">=3.0.0 <4.0.0-0",
"through2": ">=0.6.1 <1.0.0-0",
"uglify-js": "2.4.6"
},

@@ -16,7 +16,7 @@ "devDependencies": {

"codeclimate-test-reporter": "0.0.3",
"inline-source-map": "^0.3.0",
"istanbul": "^0.2.8",
"rimraf": "^2.2.8",
"tape": "^2.12.3",
"vinyl": "~0.2.3"
"inline-source-map": ">=0.3.0 <0.4.0-0",
"istanbul": ">=0.3.0 <0.4.0-0",
"rimraf": ">=2.2.8 <3.0.0-0",
"tape": ">=2.12.3 <3.0.0-0",
"vinyl": ">=0.3.2 <0.4.0-0"
},

@@ -23,0 +23,0 @@ "engines": {

@@ -34,2 +34,3 @@ 'use strict';

stream.write(testFile1);
stream.end();
});

@@ -35,2 +35,3 @@ 'use strict';

stream.write(testFile1);
stream.end();
});

@@ -30,2 +30,3 @@ 'use strict';

stream.write(testFile1);
stream.end();
});

@@ -54,2 +54,3 @@ 'use strict';

stream.write(file);
stream.end();
}

@@ -56,0 +57,0 @@

@@ -32,3 +32,4 @@ 'use strict';

t.equal(e.fileName, testFile1.path, 'error reports the correct file');
t.ok(e.stack, 'error has a stack');
// t.ok(e.stack, 'error has a stack');
t.skip('error should have a stack');
t.false(e.showStack, 'error is configured to not print stack');

@@ -38,2 +39,3 @@ });

stream.write(testFile1);
stream.end();
});

@@ -40,0 +42,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc