Skip to content

Commit

Permalink
Update mime lib
Browse files Browse the repository at this point in the history
  • Loading branch information
hzalaz committed Nov 1, 2018
1 parent 60eabeb commit 70d8e7f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# High Level Amazon S3 Client

Fork from https://github.com/andrewrk/node-s3-client

## Installation

`npm install @auth0/s3 --save`
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Client.prototype.uploadFile = function(params) {
var s3Params = extend({}, params.s3Params);
if (s3Params.ContentType === undefined) {
var defaultContentType = params.defaultContentType || 'application/octet-stream';
s3Params.ContentType = mime.lookup(localFile, defaultContentType);
s3Params.ContentType = mime.getType(localFile, defaultContentType);
}
var fatalError = false;
var localFileSlicer = null;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Amazon S3 client for upload/download files",
"main": "lib/index.js",
"scripts": {
"test": "mocha"
"test": "mocha --exit"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -38,7 +38,7 @@
"fd-slicer": "~1.0.0",
"findit2": "~2.2.3",
"graceful-fs": "~4.1.4",
"mime": "~1.4.1",
"mime": "^2.3.1",
"mkdirp": "~0.5.0",
"pend": "~1.2.0",
"rimraf": "~2.2.8",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ jmespath@0.15.0:
resolved "https://registry.yarnpkg.com/jmespath/-/jmespath-0.15.0.tgz#a3f222a9aae9f966f5d27c796510e28091764217"
integrity sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc=

mime@~1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"
integrity sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==
mime@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-2.3.1.tgz#b1621c54d63b97c47d3cfe7f7215f7d64517c369"
integrity sha512-OEUllcVoydBHGN1z84yfQDimn58pZNNNXgZlHXSboxMlFvgI6MXSWpWKpFRra7H1HxpVhHTkrghfRW49k6yjeg==

minimatch@3.0.4, minimatch@^3.0.4:
version "3.0.4"
Expand Down

0 comments on commit 70d8e7f

Please sign in to comment.