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

aws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1965
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sdk - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

6

lib/config.js

@@ -72,2 +72,5 @@ var AWS = require('./core');

* send requests synchronously. Defaults to true (async on).
* * **xhrWithCredentials** [Boolean] — Sets the "withCredentials"
* property of an XMLHttpRequest object. Used in the browser environment
* only. Defaults to false.
* @!attribute logger

@@ -137,2 +140,5 @@ * @return [#write,#log] an object that responds to .write() (like a stream)

* send requests synchronously. Defaults to true (async on).
* * **xhrWithCredentials** [Boolean] — Sets the "withCredentials"
* property of an XMLHttpRequest object. Used in the browser environment
* only. Defaults to false.
* @option options apiVersion [String, Date] a String in YYYY-MM-DD format

@@ -139,0 +145,0 @@ * (or a date) that represents the latest possible API version that can be

2

lib/core.js

@@ -20,3 +20,3 @@ /**

*/
VERSION: '2.0.8',
VERSION: '2.0.9',

@@ -23,0 +23,0 @@ /**

@@ -26,2 +26,6 @@ var AWS = require('../core');

if (httpOptions.xhrWithCredentials) {
xhr.withCredentials = true;
}
xhr.addEventListener('readystatechange', function() {

@@ -28,0 +32,0 @@ try {

@@ -68,2 +68,8 @@ var AWS = require('../core');

var httpRequest = req.httpRequest;
if (httpRequest.method === 'GET' || httpRequest.method === 'HEAD') {
// Content-Type is not set in GET/HEAD requests
delete httpRequest.headers['Content-Type'];
return;
}
if (!httpRequest.headers['Content-Type']) { // always have a Content-Type

@@ -70,0 +76,0 @@ httpRequest.headers['Content-Type'] = 'application/octet-stream';

{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.0.8",
"version": "2.0.9",
"author": {

@@ -6,0 +6,0 @@ "name":"Amazon Web Services",

@@ -21,3 +21,3 @@ # AWS SDK for JavaScript [![Version](https://badge.fury.io/js/aws-sdk.png)](http://badge.fury.io/js/aws-sdk) [![Build Status](https://travis-ci.org/aws/aws-sdk-js.png?branch=master)](https://travis-ci.org/aws/aws-sdk-js)

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.8.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.9.min.js"></script>

@@ -24,0 +24,0 @@ ### In Node.js

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