New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-contrib-compress

Package Overview
Dependencies
Maintainers
7
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-contrib-compress - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

6

package.json
{
"name": "grunt-contrib-compress",
"description": "Compress files and folders",
"version": "1.4.0",
"version": "1.4.1",
"author": {

@@ -21,3 +21,2 @@ "name": "Grunt Team",

"chalk": "^1.1.1",
"iltorb": "^1.0.13",
"lodash": "^4.7.0",

@@ -27,2 +26,5 @@ "pretty-bytes": "^3.0.1",

},
"optionalDependencies": {
"iltorb": "^1.0.13"
},
"devDependencies": {

@@ -29,0 +31,0 @@ "grunt": "^1.0.0",

@@ -1,2 +0,2 @@

# grunt-contrib-compress v1.4.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-compress.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/tiwbi1smm1j8aa5j/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-compress/branch/master)
# grunt-contrib-compress v1.4.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-compress.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/tiwbi1smm1j8aa5j/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-compress/branch/master)

@@ -276,3 +276,4 @@ > Compress files and folders

* 2017-01-18   v1.4.0   Add support for `brotli`
* 2017-01-20   v1.4.1   Make brotli support optional.
* 2017-01-18   v1.4.0   Add support for brotli.
* 2016-05-24   v1.3.0   Update archiver to v1.0. Fix node 6 support.

@@ -320,2 +321,2 @@ * 2016-03-24   v1.2.0   Dependency update.

*This file was generated on Wed Jan 18 2017 22:23:26.*
*This file was generated on Fri Jan 20 2017 00:08:45.*

@@ -14,3 +14,10 @@ /*

var compress = require('./lib/compress')(grunt);
var iltorb;
try {
iltorb = require('iltorb');
} catch (er) {
iltorb = null;
}
grunt.registerMultiTask('compress', 'Compress files.', function() {

@@ -29,4 +36,9 @@ compress.options = this.options({

if (compress.options.mode.match('brotli') && !iltorb) {
grunt.fail.fatal('iltorb dependency wasn\'t found; in order to use brotli, ' +
'make sure you have a supported C++ compiler available and run `npm install` again.');
}
if (_.includes(['zip', 'tar', 'tgz', 'gzip', 'deflate', 'deflateRaw', 'brotli'], compress.options.mode) === false) {
grunt.fail.warn('Mode ' + String(compress.options.mode).cyan + ' not supported.');
grunt.fail.warn('Mode ' + String(compress.options.mode) + ' not supported.');
}

@@ -33,0 +45,0 @@

@@ -19,4 +19,11 @@ /*

var _ = require('lodash');
var iltorb = require('iltorb');
var iltorb;
try {
iltorb = require('iltorb');
} catch (er) {
iltorb = null;
}
module.exports = function(grunt) {

@@ -108,4 +115,10 @@

var compressor = extension === 'br' ? algorithm.call(iltorb, exports.options.brotli) : algorithm.call(zlib, exports.options);
var compressor;
if (iltorb && extension === 'br') {
compressor = algorithm.call(iltorb, exports.options.brotli);
} else {
compressor = algorithm.call(zlib, exports.options);
}
compressor.on('error', function(err) {

@@ -112,0 +125,0 @@ grunt.log.error(err);

Sorry, the diff of this file is not supported yet

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