Socket
Socket
Sign inDemoInstall

aws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1964
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.0-rc7 to 2.0.0-rc8

2

doc-src/guide/browser-examples.md

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

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