Skip to content

Commit 971af2e

Browse files
committed
Tag release v2.1.3
References: #439, #440, #441, #442
1 parent 32edd61 commit 971af2e

File tree

8 files changed

+31
-18
lines changed

8 files changed

+31
-18
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.2.min.js"></script>
27+
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.3.min.js"></script>
2828

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

dist/aws-sdk.js

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// AWS SDK for JavaScript v2.1.2
1+
// AWS SDK for JavaScript v2.1.3
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){
@@ -247,7 +247,7 @@ module.exports = AWS;
247247
AWS.util.update(AWS, {
248248

249249

250-
VERSION: '2.1.2',
250+
VERSION: '2.1.3',
251251

252252

253253
Signers: {},
@@ -3343,7 +3343,7 @@ AWS.S3.ManagedUpload = AWS.util.inherit({
33433343
on('readable', function() { self.fillQueue(); }).
33443344
on('end', function() {
33453345
self.isDoneChunking = true;
3346-
self.numParts = self.totalPartNumbers + 1;
3346+
self.numParts = self.totalPartNumbers;
33473347
self.fillQueue.call(self);
33483348
});
33493349
}
@@ -3353,6 +3353,13 @@ AWS.S3.ManagedUpload = AWS.util.inherit({
33533353
},
33543354

33553355

3356+
abort: function() {
3357+
this.cleanup(AWS.util.error(new Error('Request aborted by user'), {
3358+
code: 'RequestAbortedError', retryable: false
3359+
}));
3360+
},
3361+
3362+
33563363
validateBody: function validateBody() {
33573364
var self = this;
33583365
self.body = self.service.config.params.Body;
@@ -3463,10 +3470,14 @@ AWS.S3.ManagedUpload = AWS.util.inherit({
34633470
}
34643471

34653472
if (self.partBuffer.length >= self.partSize) {
3473+
self.nextChunk(self.partBuffer.slice(0, self.partSize));
34663474
self.partBuffer = self.partBuffer.slice(self.partSize);
3467-
} else if (self.isDoneChunking && self.partBuffer.length > 0) {
3475+
} else if (self.isDoneChunking) {
34683476
self.totalBytes = self.totalChunkedBytes;
3469-
self.nextChunk(self.partBuffer);
3477+
if (self.partBuffer.length > 0) {
3478+
self.numParts++;
3479+
self.nextChunk(self.partBuffer);
3480+
}
34703481
self.partBuffer = new AWS.util.Buffer(0);
34713482
}
34723483

@@ -8010,8 +8021,10 @@ EventEmitter.prototype.emit = function(type) {
80108021
er = arguments[1];
80118022
if (er instanceof Error) {
80128023
throw er; // Unhandled 'error' event
8024+
} else {
8025+
throw TypeError('Uncaught, unspecified "error" event.');
80138026
}
8014-
throw TypeError('Uncaught, unspecified "error" event.');
8027+
return false;
80158028
}
80168029
}
80178030

dist/aws-sdk.min.js

+5-5
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.2
25+
git checkout v2.1.3
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.2.min.js"></script>
10+
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.3.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.2.min.js"></script>
11+
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.3.min.js"></script>
1212

1313
You can also download this package by clicking the following link:
14-
[aws-sdk-2.1.2.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.1.2.min.js)
14+
[aws-sdk-2.1.3.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.1.3.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.2',
20+
VERSION: '2.1.3',
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.2",
4+
"version": "2.1.3",
55
"author": {
66
"name":"Amazon Web Services",
77
"email":"",

0 commit comments

Comments
 (0)