Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

aws-sdk dependency version updated to avoid sigV4 error #176

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Installation

`npm install s3 --save`
`npm install s3-node-client --save`

## Features

Expand All @@ -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
Expand All @@ -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,
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
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"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": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/andrewrk/node-s3-client"
"url": "https://github.com/shreyawhiz/node-s3-client.git"
},
"keywords": [
"amazon",
Expand All @@ -24,8 +24,7 @@
"multipart",
"size"
],
"author": "Andrew Kelley",
"license": "MIT",
"author": "Shreya Batra",
"engines": {
"node": ">=0.10.20"
},
Expand All @@ -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"
}