Comparing version 0.8.0 to 0.8.1
@@ -186,2 +186,7 @@ /** | ||
var name = isExpandedPair ? file.dest : util.unixifyPath(file.dest || '', filepath); | ||
if (name === '.') { | ||
return; | ||
} | ||
var stat = util.stat(filepath); | ||
@@ -188,0 +193,0 @@ var source; |
{ | ||
"name": "archiver", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Creates Archives (ZIP) via Node Streams.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ctalkington/node-archiver", |
@@ -1,2 +0,2 @@ | ||
# Archiver v0.8.0 [![Build Status](https://travis-ci.org/ctalkington/node-archiver.svg?branch=master)](https://travis-ci.org/ctalkington/node-archiver) | ||
# Archiver v0.8.1 [![Build Status](https://travis-ci.org/ctalkington/node-archiver.svg?branch=master)](https://travis-ci.org/ctalkington/node-archiver) | ||
@@ -3,0 +3,0 @@ Creates Archives (Zip, Tar) via Node Streams. |
@@ -102,3 +102,3 @@ /*global before,describe,it */ | ||
.bulk([ | ||
{ expand: true, cwd: 'test/fixtures', src: 'directory/**', data: { prop: 'value' } } | ||
{ expand: true, cwd: 'test/fixtures/directory/', src: '**', data: { prop: 'value' } } | ||
]) | ||
@@ -110,9 +110,8 @@ .finalize(); | ||
assert.isArray(actual); | ||
assert.lengthOf(actual, 6); | ||
assert.propertyVal(actual[0], 'name', 'directory/'); | ||
assert.propertyVal(actual[1], 'name', 'directory/level0.txt'); | ||
assert.propertyVal(actual[2], 'name', 'directory/subdir/'); | ||
assert.propertyVal(actual[3], 'name', 'directory/subdir/level1.txt'); | ||
assert.propertyVal(actual[4], 'name', 'directory/subdir/subsub/'); | ||
assert.propertyVal(actual[5], 'name', 'directory/subdir/subsub/level2.txt'); | ||
assert.lengthOf(actual, 5); | ||
assert.propertyVal(actual[0], 'name', 'level0.txt'); | ||
assert.propertyVal(actual[1], 'name', 'subdir/'); | ||
assert.propertyVal(actual[2], 'name', 'subdir/level1.txt'); | ||
assert.propertyVal(actual[3], 'name', 'subdir/subsub/'); | ||
assert.propertyVal(actual[4], 'name', 'subdir/subsub/level2.txt'); | ||
}); | ||
@@ -119,0 +118,0 @@ |
Sorry, the diff of this file is not supported yet
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
75908
1514