Comparing version 2.0.0-rc7 to 2.0.0-rc8
@@ -10,3 +10,3 @@ # @title Examples in the Browser | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc7.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc8.min.js"></script> | ||
<script type="text/javascript"> | ||
@@ -13,0 +13,0 @@ // See the Configuring section to configure credentials in the SDK |
@@ -11,6 +11,6 @@ # @title AWS SDK for JavaScript in the Browser | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc7.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc8.min.js"></script> | ||
You can also download this package by clicking the following link: | ||
[aws-sdk-2.0.0-rc7.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc7.min.js) | ||
[aws-sdk-2.0.0-rc8.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc8.min.js) | ||
@@ -17,0 +17,0 @@ Once the SDK is loaded in your page, the module will be available from |
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
VERSION: '2.0.0-rc7', | ||
VERSION: '2.0.0-rc8', | ||
@@ -19,0 +19,0 @@ /** |
@@ -157,19 +157,19 @@ var AWS = require('./core'); | ||
if (!resp.request.httpRequest._streaming) { | ||
if (AWS.HttpClient.streamsApiVersion === 2) { // streams2 API check | ||
httpResp.on('readable', function onReadable() { | ||
var data = httpResp.read(); | ||
if (data !== null) { | ||
httpResp.on('headers', function onHeaders(statusCode, headers) { | ||
resp.request.emitEvent('httpHeaders', [statusCode, headers, resp]); | ||
if (!resp.request.httpRequest._streaming) { | ||
if (AWS.HttpClient.streamsApiVersion === 2) { // streams2 API check | ||
httpResp.on('readable', function onReadable() { | ||
var data = httpResp.read(); | ||
if (data !== null) { | ||
resp.request.emitEvent('httpData', [data, resp]); | ||
} | ||
}); | ||
} else { // legacy streams API | ||
httpResp.on('data', function onData(data) { | ||
resp.request.emitEvent('httpData', [data, resp]); | ||
} | ||
}); | ||
} else { // legacy streams API | ||
httpResp.on('data', function onData(data) { | ||
resp.request.emitEvent('httpData', [data, resp]); | ||
}); | ||
}); | ||
} | ||
} | ||
} | ||
httpResp.on('headers', function onHeaders(statusCode, headers) { | ||
resp.request.emitEvent('httpHeaders', [statusCode, headers, resp]); | ||
}); | ||
@@ -176,0 +176,0 @@ |
@@ -438,5 +438,6 @@ var AWS = require('./core'); | ||
this.httpRequest._streaming = true; | ||
this.on('httpHeaders', function streamHeaders(statusCode, headers, resp) { | ||
if (statusCode < 300) { | ||
this.httpRequest._streaming = true; | ||
req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA); | ||
@@ -443,0 +444,0 @@ req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR); |
{ | ||
"name": "aws-sdk", | ||
"description": "AWS SDK for JavaScript", | ||
"version": "2.0.0-rc7", | ||
"version": "2.0.0-rc8", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name":"Amazon Web Services", |
@@ -15,3 +15,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.0-rc7.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc8.min.js"></script> | ||
@@ -18,0 +18,0 @@ ### In Node.js |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
15014229