Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1965
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.3 to 2.0.4

lib/services/cloudsearchdomain.js

2

dist-tools/strategies/default.js

@@ -125,3 +125,3 @@ var fs = require('fs');

var ClassName = this.serviceClasses[service];
svc = new ClassName({apiVersion: version});
svc = new ClassName({apiVersion: version, endpoint: 'localhost'});
api = this.apis.load(service, svc.api.apiVersion);

@@ -128,0 +128,0 @@ } catch (e) {

@@ -10,3 +10,3 @@ # @title Examples in the Browser

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

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

@@ -17,0 +17,0 @@ Once the SDK is loaded in your page, the module will be available from

@@ -7,3 +7,3 @@ # @title Working with Services in the Browser

By default, the SDK ships with support for 5 AWS services. Each service object
By default, the SDK ships with support for 7 AWS services. Each service object
in the SDK currently provides low-level access to every API call in the

@@ -10,0 +10,0 @@ respective AWS service. The full list of methods and their parameters are

@@ -19,2 +19,3 @@ # @title Working with Services in Node.js

* [AWS.CloudSearch](http://docs.amazonwebservices.com/AWSJavaScriptSDK/latest/frames.html#!AWS/CloudSearch.html)
* [AWS.CloudSearchDomain](http://docs.amazonwebservices.com/AWSJavaScriptSDK/latest/frames.html#!AWS/CloudSearchDomain.html)
* [AWS.DataPipeline](http://docs.amazonwebservices.com/AWSJavaScriptSDK/latest/frames.html#!AWS/DataPipeline.html)

@@ -21,0 +22,0 @@ * [AWS.DirectConnect](http://docs.amazonwebservices.com/AWSJavaScriptSDK/latest/frames.html#!AWS/DirectConnect.html)

@@ -20,3 +20,3 @@ /**

*/
VERSION: '2.0.3',
VERSION: '2.0.4',

@@ -23,0 +23,0 @@ /**

@@ -69,2 +69,3 @@ var AWS = require('./core');

function VALIDATE_CREDENTIALS(req, done) {
if (!req.service.api.signatureVersion) return done(); // none
req.service.config.getCredentials(function(err) {

@@ -71,0 +72,0 @@ if (err) {

@@ -5,3 +5,2 @@ var AWS = require('../core');

var ReadableStream = AWS.util.nodeRequire('stream').Readable;
var Agent = require('agentkeepalive');
require('../http');

@@ -36,4 +35,4 @@

if (!httpOptions.agent) {
options.agent = useSSL ? this.httpsAgent() : this.httpAgent();
if (useSSL && !httpOptions.agent) {
options.agent = this.sslAgent();
}

@@ -59,3 +58,3 @@

errCallback(AWS.util.error(new Error(msg), {code: 'TimeoutError'}));
stream.end();
stream.abort();
});

@@ -89,7 +88,8 @@

httpsAgent: function httpsAgent() {
sslAgent: function sslAgent() {
var https = require('https');
if (!AWS.NodeHttpClient.sslAgent) {
AWS.NodeHttpClient.sslAgent = new Agent.HttpsAgent({
rejectUnauthorized: true
});
AWS.NodeHttpClient.sslAgent = new https.Agent({rejectUnauthorized: true});
AWS.NodeHttpClient.sslAgent.setMaxListeners(0);

@@ -99,3 +99,3 @@ // delegate maxSockets to globalAgent

enumerable: true,
get: function() { return require('https').globalAgent.maxSockets; }
get: function() { return https.globalAgent.maxSockets; }
});

@@ -106,15 +106,2 @@ }

httpAgent: function httpAgent() {
if (!AWS.NodeHttpClient.httpAgent) {
AWS.NodeHttpClient.httpAgent = new Agent({rejectUnauthorized: true});
// delegate maxSockets to globalAgent
Object.defineProperty(AWS.NodeHttpClient.httpAgent, 'maxSockets', {
enumerable: true,
get: function() { return require('http').globalAgent.maxSockets; }
});
}
return AWS.NodeHttpClient.httpAgent;
},
progressStream: function progressStream(stream, httpRequest) {

@@ -121,0 +108,0 @@ var numBytes = 0;

@@ -246,3 +246,4 @@ var Collection = require('./collection');

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;
};

@@ -249,0 +250,0 @@

@@ -449,3 +449,2 @@ var AWS = require('./core');

*
* @api experimental
* @see AWS.Request.eachItem

@@ -452,0 +451,0 @@ * @see AWS.Response.nextPage

@@ -313,3 +313,5 @@ /* eslint guard-for-in:0 */

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);

@@ -316,0 +318,0 @@ } else if (value.match(/^\d{4}/)) { // iso8601

{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.0.3",
"version": "2.0.4",
"author": {

@@ -30,3 +30,2 @@ "name":"Amazon Web Services",

"dependencies": {
"agentkeepalive": "0.2.2",
"aws-sdk-apis": "3.x",

@@ -33,0 +32,0 @@ "xml2js": "0.2.6",

@@ -21,3 +21,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.3.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.4.min.js"></script>

@@ -60,6 +60,6 @@ ### In Node.js

<tbody>
<tr><td rowspan="2">Amazon CloudFront</td><td rowspan="2">AWS.CloudFront</td><td>2012-05-05</td></tr>
<tr><td>2013-11-11</td></tr>
<tr><td>Amazon CloudFront</td><td>AWS.CloudFront</td><td>2014-05-31</td></tr>
<tr><td rowspan="2">Amazon CloudSearch</td><td rowspan="2">AWS.CloudSearch</td><td>2011-02-01</td></tr>
<tr><td>2013-01-01</td></tr>
<tr><td>Amazon CloudSearch Domain</td><td>AWS.CloudSearchDomain</td><td>2013-01-01</td></tr>
<tr><td>Amazon CloudWatch</td><td>AWS.CloudWatch</td><td>2010-08-01</td></tr>

@@ -83,3 +83,3 @@ <tr><td rowspan="2">Amazon DynamoDB</td><td rowspan="2">AWS.DynamoDB</td><td>2011-12-05</td></tr>

<tr><td>Amazon Simple Storage Service</td><td>AWS.S3</td><td>2006-03-01</td></tr>
<tr><td>Amazon Simple Workflow Service</td><td>AWS.SimpleWorkflow</td><td>2012-01-25</td></tr>
<tr><td>Amazon Simple Workflow Service</td><td>AWS.SWF</td><td>2012-01-25</td></tr>
<tr><td>Amazon SimpleDB</td><td>AWS.SimpleDB</td><td>2009-04-15</td></tr>

@@ -96,4 +96,3 @@ <tr><td>Auto Scaling</td><td>AWS.AutoScaling</td><td>2011-01-01</td></tr>

<tr><td>AWS Security Token Service</td><td>AWS.STS</td><td>2011-06-15</td></tr>
<tr><td rowspan="2">AWS Storage Gateway</td><td rowspan="2">AWS.StorageGateway</td><td>2012-06-30</td></tr>
<tr><td>2013-06-30</td></tr>
<tr><td>AWS Storage Gateway</td><td>AWS.StorageGateway</td><td>2013-06-30</td></tr>
<tr><td>AWS Support</td><td>AWS.Support</td><td>2013-04-15</td></tr>

@@ -100,0 +99,0 @@ <tr><td>Elastic Load Balancing</td><td>AWS.ELB</td><td>2012-06-01</td></tr>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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