bloody-simple-s3
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,3 +1,8 @@ | ||
## 0.2.1 - 2014-11-28 | ||
* Allow limit and cursor options on #list(). | ||
## 0.2.0 - 2014-11-27 | ||
* Major refactor. | ||
* Introducing #list(), #copy(), #remove(), #move() methods to manipulate files on Amazon S3. | ||
* Old functions refactored with new names and params. |
{ | ||
"name": "bloody-simple-s3", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A bloody simple interface to S3, based on the official AWS sdk.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -283,2 +283,4 @@ var path = require('path'), | ||
* @param {object} [options] list options. | ||
* @param {string} [options.cursor] the key to start with listing files. | ||
* @param {number} [options.limit] maximum number of files to list, must not exceed 1000. | ||
* @param {function} [callback] optional callback function, i.e. function(err, data). | ||
@@ -312,6 +314,8 @@ * @return {Promise} | ||
params = _.assign(options, { | ||
params = { | ||
Bucket: this.bucket, | ||
Prefix: path.normalize(dir) | ||
}); | ||
Prefix: path.normalize(dir), | ||
Marker: options.cursor, | ||
MaxKeys: options.limit | ||
}; | ||
@@ -454,2 +458,3 @@ resolver = function(resolve, reject) { | ||
// .then(function (arr) { | ||
// console.log(arr); | ||
// return s3.copy(arr[1].key, 'temp/0a') | ||
@@ -456,0 +461,0 @@ // .then(function (data) { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16946
438
0