bloody-simple-s3
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -0,1 +1,5 @@ | ||
## 0.3.3 - 2015-04-16 | ||
* Set cursor=dir by default as a smarter way to filter our dir references from the #list() results | ||
## 0.3.2 - 2015-04-16 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "bloody-simple-s3", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "A bloody simple interface to S3, based on the official AWS sdk", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -245,3 +245,3 @@ var path = require('path'); | ||
Prefix: path.normalize(dir), | ||
Marker: options.cursor, | ||
Marker: options.cursor || path.normalize(dir), | ||
MaxKeys: options.limit | ||
@@ -256,14 +256,9 @@ }; | ||
arr = _.chain(data.Contents) | ||
.map(function (obj) { | ||
return { | ||
name: obj.Key, | ||
size: obj.Size, | ||
last_modified: obj.LastModified | ||
}; | ||
}) | ||
.filter(function (obj) { | ||
return obj.name !== dir; // remove self reference to dir | ||
}) | ||
.value(); | ||
arr = _.map(data.Contents, function (obj) { | ||
return { | ||
name: obj.Key, | ||
size: obj.Size, | ||
last_modified: obj.LastModified | ||
}; | ||
}); | ||
@@ -270,0 +265,0 @@ resolve(arr); |
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
95758
393