grunt-contrib-compress
Advanced tools
Comparing version 0.5.3 to 0.6.0
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
3
167
1
0
14873
5
190
+ Addedarchiver@0.5.2(transitive)
+ Addedfile-utils@0.1.5(transitive)
+ Addedisbinaryfile@0.1.9(transitive)
+ Addedlodash@2.1.0(transitive)
+ Addedlodash._isnative@2.4.1(transitive)
+ Addedlodash._objecttypes@2.4.1(transitive)
+ Addedlodash._shimkeys@2.4.1(transitive)
+ Addedlodash.defaults@2.4.1(transitive)
+ Addedlodash.isobject@2.4.1(transitive)
+ Addedlodash.keys@2.4.1(transitive)
+ Addedzip-stream@0.1.4(transitive)
- Removedlazystream@~0.1.0
- Removedarchiver@0.4.10(transitive)
Updatedarchiver@~0.5.0