Comparing version 2.0.8 to 2.0.9
@@ -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 |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1
0
9
4
283390
75
7171