Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

s3

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3 - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

5

CHANGELOG.md

@@ -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 @@

4

lib/index.js

@@ -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;

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc