diff --git a/README.md b/README.md index ce95b83..aaef736 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Installation -`npm install s3 --save` +`npm install s3-node-client --save` ## Features @@ -19,15 +19,13 @@ * Automatically provide Content-Type for uploads based on file extension. * Support third-party S3-compatible platform services like Ceph -See also the companion CLI tool which is meant to be a drop-in replacement for -s3cmd: [s3-cli](https://github.com/andrewrk/node-s3-cli). ## Synopsis ### Create a client ```js -var s3 = require('s3'); +var s3 = require('s3-node-client'); var client = s3.createClient({ maxAsyncS3: 20, // this is the default @@ -50,7 +48,7 @@ var client = s3.createClient({ ### Create a client from existing AWS.S3 object ```js -var s3 = require('s3'); +var s3 = require('s3-node-client'); var awsS3Client = new AWS.S3(s3Options); var options = { s3Client: awsS3Client, diff --git a/lib/index.js b/lib/index.js index 526f5f1..d0d44d3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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; diff --git a/package.json b/package.json index e26cce4..a64c792 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "s3", - "version": "4.4.0", + "name": "s3-node-client", + "version": "4.4.4", "description": "high level amazon s3 client. upload and download files and directories", "main": "lib/index.js", "scripts": { @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/andrewrk/node-s3-client" + "url": "https://github.com/shreyawhiz/node-s3-client.git" }, "keywords": [ "amazon", @@ -24,8 +24,7 @@ "multipart", "size" ], - "author": "Andrew Kelley", - "license": "MIT", + "author": "Shreya Batra", "engines": { "node": ">=0.10.20" }, @@ -34,20 +33,22 @@ "ncp": "~1.0.1" }, "dependencies": { - "aws-sdk": "~2.4.9", + "aws-sdk": "2.67.0", "fd-slicer": "~1.0.0", "findit2": "~2.2.3", "graceful-fs": "~4.1.4", - "mime": "~1.2.11", + "mime": "~2.3.1", "mkdirp": "~0.5.0", "pend": "~1.2.0", "rimraf": "~2.2.8", "streamsink": "~1.2.0" }, "bugs": { - "url": "https://github.com/andrewrk/node-s3-client/issues" + "url": "https://github.com/shreyawhiz/node-s3-client/issues" }, "directories": { + "lib": "lib", "test": "test" - } + }, + "homepage": "https://github.com/shreyawhiz/node-s3-client#readme" }