Skip to content

Commit

Permalink
Tag release v2.0.4
Browse files Browse the repository at this point in the history
References:
  #134, #297, #308, #310, #311
  • Loading branch information
lsegal committed Jun 26, 2014
1 parent a68219c commit 126656a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ to work with the new major version.
To use the SDK in the browser, simply add the following script tag to your
HTML pages:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.3.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.4.min.js"></script>

### In Node.js

Expand Down
12 changes: 8 additions & 4 deletions dist/aws-sdk.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// AWS SDK for JavaScript v2.0.3
// AWS SDK for JavaScript v2.0.4
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
(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){
Expand Down Expand Up @@ -3849,7 +3849,7 @@ module.exports = AWS;
AWS.util.update(AWS, {


VERSION: '2.0.3',
VERSION: '2.0.4',


Signers: {},
Expand Down Expand Up @@ -4138,6 +4138,7 @@ AWS.EventListeners = {
Core: new SequentialExecutor().addNamedListeners(function(add, addAsync) {
addAsync('VALIDATE_CREDENTIALS', 'validate',
function VALIDATE_CREDENTIALS(req, done) {
if (!req.service.api.signatureVersion) return done(); // none
req.service.config.getCredentials(function(err) {
if (err) {
req.response.err = AWS.util.error(err,
Expand Down Expand Up @@ -5220,7 +5221,8 @@ function TimestampShape(shape) {
this.toType = function(value) {
if (value === null || value === undefined) return null;
if (typeof value.toUTCString === 'function') return value;
return typeof value === 'string' ? util.date.parseTimestamp(value) : null;
return typeof value === 'string' || typeof value === 'number' ?
util.date.parseTimestamp(value) : null;
};

this.toWireFormat = function(value) {
Expand Down Expand Up @@ -8044,7 +8046,9 @@ var util = {
},

parseTimestamp: function parseTimestamp(value) {
if (value.match(/^\d+$/)) { // unix timestamp
if (typeof value === 'number') { // unix timestamp (number)
return new Date(value);
} else if (value.match(/^\d+$/)) { // unix timestamp
return new Date(value * 1000);
} else if (value.match(/^\d{4}/)) { // iso8601
return new Date(value);
Expand Down
12 changes: 6 additions & 6 deletions dist/aws-sdk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc-src/guide/browser-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and authenticated with the correct credentials.

The common preamble code can be summarized as follows:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.3.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.4.min.js"></script>
<script type="text/javascript">
// See the Configuring section to configure credentials in the SDK
AWS.config.credentials = ...;
Expand Down
4 changes: 2 additions & 2 deletions doc-src/guide/browser-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ The quickest way to get started with the SDK is to load it using the hosted
package directly from Amazon Web Services. To do this, simply add the following
script tag to your HTML pages:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.3.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.4.min.js"></script>

You can also download this package by clicking the following link:
[aws-sdk-2.0.3.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.3.min.js)
[aws-sdk-2.0.4.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.4.min.js)

Once the SDK is loaded in your page, the module will be available from
the global variable `AWS` (or `window.AWS`).
Expand Down
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.0.3',
VERSION: '2.0.4',

/**
* @api private
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.0.3",
"version": "2.0.4",
"author": {
"name":"Amazon Web Services",
"email":"",
Expand Down

0 comments on commit 126656a

Please sign in to comment.