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

grunt-contrib-compress

Package Overview
Dependencies
Maintainers
3
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 0.5.3 to 0.6.0

9

package.json
{
"name": "grunt-contrib-compress",
"description": "Compress files and folders.",
"version": "0.5.3",
"version": "0.6.0",
"homepage": "https://github.com/gruntjs/grunt-contrib-compress",

@@ -30,4 +30,3 @@ "author": {

"dependencies": {
"archiver": "~0.4.2",
"lazystream": "~0.1.0",
"archiver": "~0.5.0",
"prettysize": "~0.0.2"

@@ -49,3 +48,7 @@ },

"gruntplugin"
],
"files": [
"tasks",
"LICENSE-MIT"
]
}

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

# grunt-contrib-compress v0.5.2 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-compress.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress)
# grunt-contrib-compress v0.6.0 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-compress.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress)

@@ -37,2 +37,3 @@ > Compress files and folders.

Type: `String` or `Function`
Modes: `zip` `tar`

@@ -42,2 +43,4 @@ This is used to define where to output the archive. Each target can only have one output file.

*This option is only appropriate for many-files-to-one compression modes like zip and tar. For gzip for example, please use grunt's standard src/dest specifications.*
#### mode

@@ -50,4 +53,5 @@ Type: `String`

#### level (zip only)
#### level
Type: `Integer`
Modes: `zip`
Default: 1

@@ -137,2 +141,4 @@

* 2014-01-12   v0.6.0   Update archiver to v0.5.0
* 2013-11-27   v0.5.3   Allow archive option to be a function.
* 2013-06-03   v0.5.2   Allow custom extensions using the ext property.

@@ -164,2 +170,2 @@ * 2013-05-28   v0.5.1   Avoid gzip on folders.

*This file was generated on Tue Oct 29 2013 13:00:35.*
*This file was generated on Sun Jan 12 2014 16:04:16.*

@@ -26,3 +26,2 @@ /*

compress.options.mode = compress.options.mode || compress.autoDetectMode(compress.options.archive);
grunt.verbose.writeflags(compress.options, 'Options');

@@ -29,0 +28,0 @@ if (grunt.util._.include(['zip', 'tar', 'tgz', 'gzip', 'deflate', 'deflateRaw'], compress.options.mode) === false) {

@@ -16,3 +16,2 @@ /*

var archiver = require('archiver');
var Readable = require('lazystream').Readable;

@@ -29,3 +28,3 @@ module.exports = function(grunt) {

};
// 1 to 1 deflate of files

@@ -35,3 +34,3 @@ exports.deflate = function(files, done) {

};
// 1 to 1 deflateRaw of files

@@ -41,3 +40,3 @@ exports.deflateRaw = function(files, done) {

};
// 1 to 1 compression of files, expects a compatible zlib method to be passed in, see above

@@ -143,7 +142,4 @@ exports.singleFile = function(files, algorithm, extension, done) {

var internalFileName = (isExpandedPair) ? file.dest : exports.unixifyPath(path.join(file.dest || '', srcFile));
var srcStream = new Readable(function() {
return fs.createReadStream(srcFile);
});
archive.append(srcStream, { name: internalFileName }, function(err) {
archive.file(srcFile, { name: internalFileName }, function(err) {
grunt.verbose.writeln('Archiving ' + srcFile.cyan + ' -> ' + String(dest).cyan + '/'.cyan + internalFileName.cyan);

@@ -150,0 +146,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