Comparing version 4.0.0 to 4.1.0
@@ -0,1 +1,6 @@ | ||
### 4.1.0 | ||
* Content-Type header is now automatically filled out if you do not explicitly | ||
provide it or set it to `null`. | ||
### 4.0.0 | ||
@@ -2,0 +7,0 @@ |
@@ -15,2 +15,3 @@ var AWS = require('aws-sdk'); | ||
var PassThrough = require('stream').PassThrough; | ||
var mime = require('mime'); | ||
@@ -123,2 +124,5 @@ var MAX_PUTOBJECT_SIZE = 5 * 1024 * 1024 * 1024; | ||
var s3Params = extend({}, params.s3Params); | ||
if (s3Params.ContentType === undefined) { | ||
s3Params.ContentType = mime.lookup(localFile); | ||
} | ||
var fatalError = false; | ||
@@ -125,0 +129,0 @@ var localFileSlicer = null; |
{ | ||
"name": "s3", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "high level amazon s3 client. upload and download files and directories", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"type": "git", | ||
"url": "https://github.com/superjoe30/node-s3-client" | ||
"url": "https://github.com/andrewrk/node-s3-client" | ||
}, | ||
@@ -44,4 +44,11 @@ "keywords": [ | ||
"rimraf": "~2.2.8", | ||
"fd-slicer": "~0.1.0" | ||
"fd-slicer": "~0.1.0", | ||
"mime": "~1.2.11" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/andrewrk/node-s3-client/issues" | ||
}, | ||
"directories": { | ||
"test": "test" | ||
} | ||
} |
@@ -15,2 +15,3 @@ # High Level Amazon S3 Client | ||
or downloading files unnecessarily. | ||
* Automatically provide Content-Type for uploads based on file extension. | ||
@@ -219,2 +220,3 @@ See also the companion CLI tool which is meant to be a drop-in replacement for | ||
* Progress reporting. | ||
* Sets the `ContentType` based on file extension if you do not provide it. | ||
@@ -221,0 +223,0 @@ Returns an `EventEmitter` with these properties: |
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
61632
1249
1
536
0
8
+ Addedmime@~1.2.11
+ Addedmime@1.2.11(transitive)