Skip to content

Commit 5c239be

Browse files
committed
Tag release v2.1.5
References: #448, #449, #451
1 parent f6ea797 commit 5c239be

File tree

8 files changed

+41
-35
lines changed

8 files changed

+41
-35
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ to work with the new major version.
2424
To use the SDK in the browser, simply add the following script tag to your
2525
HTML pages:
2626

27-
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.4.min.js"></script>
27+
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.5.min.js"></script>
2828

2929
The AWS SDK is also compatible with [browserify](http://browserify.org).
3030

dist/aws-sdk.js

+28-22
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// AWS SDK for JavaScript v2.1.4
1+
// AWS SDK for JavaScript v2.1.5
22
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
44
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
@@ -43,6 +43,10 @@ AWS.apiLoader.services['kinesis'] = {};
4343
AWS.Kinesis = AWS.Service.defineService('kinesis', [ '2013-12-02' ]);
4444

4545
AWS.apiLoader.services['kinesis']['2013-12-02'] = {"metadata":{"apiVersion":"2013-12-02","endpointPrefix":"kinesis","jsonVersion":"1.1","serviceAbbreviation":"Kinesis","serviceFullName":"Amazon Kinesis","signatureVersion":"v4","targetPrefix":"Kinesis_20131202","protocol":"json"},"operations":{"AddTagsToStream":{"input":{"type":"structure","required":["StreamName","Tags"],"members":{"StreamName":{},"Tags":{"type":"map","key":{},"value":{}}}},"http":{}},"CreateStream":{"input":{"type":"structure","required":["StreamName","ShardCount"],"members":{"StreamName":{},"ShardCount":{"type":"integer"}}},"http":{}},"DeleteStream":{"input":{"type":"structure","required":["StreamName"],"members":{"StreamName":{}}},"http":{}},"DescribeStream":{"input":{"type":"structure","required":["StreamName"],"members":{"StreamName":{},"Limit":{"type":"integer"},"ExclusiveStartShardId":{}}},"output":{"type":"structure","required":["StreamDescription"],"members":{"StreamDescription":{"type":"structure","required":["StreamName","StreamARN","StreamStatus","Shards","HasMoreShards"],"members":{"StreamName":{},"StreamARN":{},"StreamStatus":{},"Shards":{"type":"list","member":{"type":"structure","required":["ShardId","HashKeyRange","SequenceNumberRange"],"members":{"ShardId":{},"ParentShardId":{},"AdjacentParentShardId":{},"HashKeyRange":{"type":"structure","required":["StartingHashKey","EndingHashKey"],"members":{"StartingHashKey":{},"EndingHashKey":{}}},"SequenceNumberRange":{"type":"structure","required":["StartingSequenceNumber"],"members":{"StartingSequenceNumber":{},"EndingSequenceNumber":{}}}}}},"HasMoreShards":{"type":"boolean"}}}}},"http":{}},"GetRecords":{"input":{"type":"structure","required":["ShardIterator"],"members":{"ShardIterator":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Records"],"members":{"Records":{"type":"list","member":{"type":"structure","required":["SequenceNumber","Data","PartitionKey"],"members":{"SequenceNumber":{},"Data":{"type":"blob"},"PartitionKey":{}}}},"NextShardIterator":{}}},"http":{}},"GetShardIterator":{"input":{"type":"structure","required":["StreamName","ShardId","ShardIteratorType"],"members":{"StreamName":{},"ShardId":{},"ShardIteratorType":{},"StartingSequenceNumber":{}}},"output":{"type":"structure","members":{"ShardIterator":{}}},"http":{}},"ListStreams":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"ExclusiveStartStreamName":{}}},"output":{"type":"structure","required":["StreamNames","HasMoreStreams"],"members":{"StreamNames":{"type":"list","member":{}},"HasMoreStreams":{"type":"boolean"}}},"http":{}},"ListTagsForStream":{"input":{"type":"structure","required":["StreamName"],"members":{"StreamName":{},"ExclusiveStartTagKey":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Tags","HasMoreTags"],"members":{"Tags":{"type":"list","member":{"type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}},"HasMoreTags":{"type":"boolean"}}},"http":{}},"MergeShards":{"input":{"type":"structure","required":["StreamName","ShardToMerge","AdjacentShardToMerge"],"members":{"StreamName":{},"ShardToMerge":{},"AdjacentShardToMerge":{}}},"http":{}},"PutRecord":{"input":{"type":"structure","required":["StreamName","Data","PartitionKey"],"members":{"StreamName":{},"Data":{"type":"blob"},"PartitionKey":{},"ExplicitHashKey":{},"SequenceNumberForOrdering":{}}},"output":{"type":"structure","required":["ShardId","SequenceNumber"],"members":{"ShardId":{},"SequenceNumber":{}}},"http":{}},"PutRecords":{"input":{"type":"structure","required":["Records","StreamName"],"members":{"Records":{"type":"list","member":{"type":"structure","required":["Data","PartitionKey"],"members":{"Data":{"type":"blob"},"ExplicitHashKey":{},"PartitionKey":{}}}},"StreamName":{}}},"output":{"type":"structure","required":["Records"],"members":{"FailedRecordCount":{"type":"integer"},"Records":{"type":"list","member":{"type":"structure","members":{"SequenceNumber":{},"ShardId":{},"ErrorCode":{},"ErrorMessage":{}}}}}},"http":{}},"RemoveTagsFromStream":{"input":{"type":"structure","required":["StreamName","TagKeys"],"members":{"StreamName":{},"TagKeys":{"type":"list","member":{}}}},"http":{}},"SplitShard":{"input":{"type":"structure","required":["StreamName","ShardToSplit","NewStartingHashKey"],"members":{"StreamName":{},"ShardToSplit":{},"NewStartingHashKey":{}}},"http":{}}},"shapes":{},"paginators":{"DescribeStream":{"input_token":"ExclusiveStartShardId","limit_key":"Limit","more_results":"StreamDescription.HasMoreShards","output_token":"StreamDescription.Shards[-1].ShardId","result_key":"StreamDescription.Shards"},"ListStreams":{"input_token":"ExclusiveStartStreamName","limit_key":"Limit","more_results":"HasMoreStreams","output_token":"StreamNames[-1]","result_key":"StreamNames"}}};
46+
AWS.apiLoader.services['lambda'] = {};
47+
AWS.Lambda = AWS.Service.defineService('lambda', [ '2014-11-11' ]);
48+
49+
AWS.apiLoader.services['lambda']['2014-11-11'] = {"metadata":{"apiVersion":"2014-11-11","endpointPrefix":"lambda","serviceFullName":"AWS Lambda","signatureVersion":"v4","protocol":"rest-json"},"operations":{"AddEventSource":{"http":{"requestUri":"/2014-11-13/event-source-mappings/"},"input":{"type":"structure","required":["EventSource","FunctionName","Role"],"members":{"EventSource":{},"FunctionName":{},"Role":{},"BatchSize":{"type":"integer"},"Parameters":{"shape":"S6"}}},"output":{"shape":"S7"}},"DeleteFunction":{"http":{"method":"DELETE","requestUri":"/2014-11-13/functions/{FunctionName}","responseCode":204},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"}}}},"GetEventSource":{"http":{"method":"GET","requestUri":"/2014-11-13/event-source-mappings/{UUID}","responseCode":200},"input":{"type":"structure","required":["UUID"],"members":{"UUID":{"location":"uri","locationName":"UUID"}}},"output":{"shape":"S7"}},"GetFunction":{"http":{"method":"GET","requestUri":"/2014-11-13/functions/{FunctionName}","responseCode":200},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"}}},"output":{"type":"structure","members":{"Configuration":{"shape":"Se"},"Code":{"type":"structure","members":{"RepositoryType":{},"Location":{}}}}}},"GetFunctionConfiguration":{"http":{"method":"GET","requestUri":"/2014-11-13/functions/{FunctionName}/configuration","responseCode":200},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"}}},"output":{"shape":"Se"}},"InvokeAsync":{"http":{"requestUri":"/2014-11-13/functions/{FunctionName}/invoke-async/","responseCode":202},"input":{"type":"structure","required":["FunctionName","InvokeArgs"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"},"InvokeArgs":{"shape":"Sq"}},"payload":"InvokeArgs"},"output":{"type":"structure","members":{"Status":{"location":"statusCode","type":"integer"}}}},"ListEventSources":{"http":{"method":"GET","requestUri":"/2014-11-13/event-source-mappings/","responseCode":200},"input":{"type":"structure","members":{"EventSourceArn":{"location":"querystring","locationName":"EventSource"},"FunctionName":{"location":"querystring","locationName":"FunctionName"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems","type":"integer"}}},"output":{"type":"structure","members":{"NextMarker":{},"EventSources":{"type":"list","member":{"shape":"S7"}}}}},"ListFunctions":{"http":{"method":"GET","requestUri":"/2014-11-13/functions/","responseCode":200},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems","type":"integer"}}},"output":{"type":"structure","members":{"NextMarker":{},"Functions":{"type":"list","member":{"shape":"Se"}}}}},"RemoveEventSource":{"http":{"method":"DELETE","requestUri":"/2014-11-13/event-source-mappings/{UUID}","responseCode":204},"input":{"type":"structure","required":["UUID"],"members":{"UUID":{"location":"uri","locationName":"UUID"}}}},"UpdateFunctionConfiguration":{"http":{"method":"PUT","requestUri":"/2014-11-13/functions/{FunctionName}/configuration","responseCode":200},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"},"Role":{"location":"querystring","locationName":"Role"},"Handler":{"location":"querystring","locationName":"Handler"},"Description":{"location":"querystring","locationName":"Description"},"Timeout":{"location":"querystring","locationName":"Timeout","type":"integer"},"MemorySize":{"location":"querystring","locationName":"MemorySize","type":"integer"}}},"output":{"shape":"Se"}},"UploadFunction":{"http":{"method":"PUT","requestUri":"/2014-11-13/functions/{FunctionName}","responseCode":201},"input":{"type":"structure","required":["FunctionName","FunctionZip","Runtime","Role","Handler","Mode"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"},"FunctionZip":{"shape":"Sq"},"Runtime":{"location":"querystring","locationName":"Runtime"},"Role":{"location":"querystring","locationName":"Role"},"Handler":{"location":"querystring","locationName":"Handler"},"Mode":{"location":"querystring","locationName":"Mode"},"Description":{"location":"querystring","locationName":"Description"},"Timeout":{"location":"querystring","locationName":"Timeout","type":"integer"},"MemorySize":{"location":"querystring","locationName":"MemorySize","type":"integer"}},"payload":"FunctionZip"},"output":{"shape":"Se"}}},"shapes":{"S6":{"type":"map","key":{},"value":{}},"S7":{"type":"structure","members":{"UUID":{},"BatchSize":{"type":"integer"},"EventSource":{},"FunctionName":{},"Parameters":{"shape":"S6"},"Role":{},"LastModified":{"type":"timestamp"},"IsActive":{"type":"boolean"},"Status":{}}},"Se":{"type":"structure","members":{"FunctionName":{},"FunctionARN":{},"ConfigurationId":{},"Runtime":{},"Role":{},"Handler":{},"Mode":{},"CodeSize":{"type":"long"},"Description":{},"Timeout":{"type":"integer"},"MemorySize":{"type":"integer"},"LastModified":{"type":"timestamp"}}},"Sq":{"type":"blob","streaming":true}}};
4650
AWS.apiLoader.services['s3'] = {};
4751
AWS.S3 = AWS.Service.defineService('s3', [ '2006-03-01' ]);
4852
require('./services/s3');
@@ -247,7 +251,7 @@ module.exports = AWS;
247251
AWS.util.update(AWS, {
248252

249253

250-
VERSION: '2.1.4',
254+
VERSION: '2.1.5',
251255

252256

253257
Signers: {},
@@ -545,8 +549,8 @@ AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, {
545549
}
546550

547551
if (creds.get) {
548-
creds.get(function(err) {
549-
resolveNext(err, err ? null : creds);
552+
creds.get(function(getErr) {
553+
resolveNext(getErr, getErr ? null : creds);
550554
});
551555
} else {
552556
resolveNext(null, creds);
@@ -795,12 +799,12 @@ AWS.EventListeners = {
795799
}
796800

797801
function progress(httpResp) {
798-
httpResp.on('sendProgress', function onSendProgress(progress) {
799-
resp.request.emit('httpUploadProgress', [progress, resp]);
802+
httpResp.on('sendProgress', function onSendProgress(value) {
803+
resp.request.emit('httpUploadProgress', [value, resp]);
800804
});
801805

802-
httpResp.on('receiveProgress', function onReceiveProgress(progress) {
803-
resp.request.emit('httpDownloadProgress', [progress, resp]);
806+
httpResp.on('receiveProgress', function onReceiveProgress(value) {
807+
resp.request.emit('httpDownloadProgress', [value, resp]);
804808
});
805809
}
806810

@@ -2292,8 +2296,8 @@ function populateHeaders(req) {
22922296
if (value === null || value === undefined) return;
22932297

22942298
if (member.location === 'headers' && member.type === 'map') {
2295-
util.each(value, function(key, value) {
2296-
req.httpRequest.headers[member.name + key] = value;
2299+
util.each(value, function(key, memberValue) {
2300+
req.httpRequest.headers[member.name + key] = memberValue;
22972301
});
22982302
} else if (member.location === 'header') {
22992303
value = member.toWireFormat(value).toString();
@@ -2908,7 +2912,7 @@ AWS.Request = inherit({
29082912
if (statusCode < 300) {
29092913
req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA);
29102914
req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR);
2911-
req.on('httpError', function streamHttpError(error, resp) {
2915+
req.on('httpError', function streamHttpError(error) {
29122916
resp.error = error;
29132917
resp.error.retryable = false;
29142918
});
@@ -4327,8 +4331,8 @@ AWS.util.update(AWS.S3.prototype, {
43274331
var charset = '; charset=UTF-8';
43284332
httpRequest.headers['Content-Type'] += charset;
43294333
} else {
4330-
var replaceFn = function(_, prefix, charset) {
4331-
return prefix + charset.toUpperCase();
4334+
var replaceFn = function(_, prefix, charsetName) {
4335+
return prefix + charsetName.toUpperCase();
43324336
};
43334337

43344338
httpRequest.headers['Content-Type'] =
@@ -4947,11 +4951,11 @@ AWS.Signers.S3 = inherit(AWS.Signers.RequestSigner, {
49474951
if (resources.length) {
49484952

49494953
querystring = [];
4950-
AWS.util.arrayEach(resources, function (resource) {
4951-
if (resource.value === undefined)
4952-
querystring.push(resource.name);
4954+
AWS.util.arrayEach(resources, function (res) {
4955+
if (res.value === undefined)
4956+
querystring.push(res.name);
49534957
else
4954-
querystring.push(resource.name + '=' + resource.value);
4958+
querystring.push(res.name + '=' + res.value);
49554959
});
49564960

49574961
resource += '?' + querystring.join('&');
@@ -7332,12 +7336,16 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
73327336
var NUMBER = '0'.charCodeAt(0)
73337337
var LOWER = 'a'.charCodeAt(0)
73347338
var UPPER = 'A'.charCodeAt(0)
7339+
var PLUS_URL_SAFE = '-'.charCodeAt(0)
7340+
var SLASH_URL_SAFE = '_'.charCodeAt(0)
73357341

73367342
function decode (elt) {
73377343
var code = elt.charCodeAt(0)
7338-
if (code === PLUS)
7344+
if (code === PLUS ||
7345+
code === PLUS_URL_SAFE)
73397346
return 62 // '+'
7340-
if (code === SLASH)
7347+
if (code === SLASH ||
7348+
code === SLASH_URL_SAFE)
73417349
return 63 // '/'
73427350
if (code < NUMBER)
73437351
return -1 //no match
@@ -8021,10 +8029,8 @@ EventEmitter.prototype.emit = function(type) {
80218029
er = arguments[1];
80228030
if (er instanceof Error) {
80238031
throw er; // Unhandled 'error' event
8024-
} else {
8025-
throw TypeError('Uncaught, unspecified "error" event.');
80268032
}
8027-
return false;
8033+
throw TypeError('Uncaught, unspecified "error" event.');
80288034
}
80298035
}
80308036

dist/aws-sdk.min.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc-src/guide/browser-building.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ First, clone the repository from GitHub and cd into the directory:
2222
```bash
2323
git clone git://github.com/aws/aws-sdk-js
2424
cd aws-sdk-js
25-
git checkout v2.1.4
25+
git checkout v2.1.5
2626
```
2727

2828
After you have cloned the repository, you need to download the dependency modules

doc-src/guide/browser-examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and authenticated with the correct credentials.
77

88
The common preamble code can be summarized as follows:
99

10-
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.4.min.js"></script>
10+
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.5.min.js"></script>
1111
<script type="text/javascript">
1212
// See the Configuring section to configure credentials in the SDK
1313
AWS.config.credentials = ...;

doc-src/guide/browser-intro.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ The quickest way to get started with the SDK is to load it using the hosted
88
package directly from Amazon Web Services. To do this, simply add the following
99
script tag to your HTML pages:
1010

11-
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.4.min.js"></script>
11+
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.5.min.js"></script>
1212

1313
You can also download this package by clicking the following link:
14-
[aws-sdk-2.1.4.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.1.4.min.js)
14+
[aws-sdk-2.1.5.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.1.5.min.js)
1515

1616
Once the SDK is loaded in your page, the module will be available from
1717
the global variable `AWS` (or `window.AWS`).

lib/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AWS.util.update(AWS, {
1717
/**
1818
* @constant
1919
*/
20-
VERSION: '2.1.4',
20+
VERSION: '2.1.5',
2121

2222
/**
2323
* @api private

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aws-sdk",
33
"description": "AWS SDK for JavaScript",
4-
"version": "2.1.4",
4+
"version": "2.1.5",
55
"author": {
66
"name":"Amazon Web Services",
77
"email":"",

0 commit comments

Comments
 (0)