Comparing version 2.0.19 to 2.0.21
var AWS = require('./core'); | ||
module.exports = AWS; | ||
// Use default API loader function | ||
AWS.apiLoader = require('./api_loader').load; | ||
// Load the xml2js XML parser | ||
@@ -5,0 +8,0 @@ AWS.XML.Parser = require('./xml/node_parser'); |
var AWS = require('./core'); | ||
// Load browser API loader | ||
AWS.apiLoader = function(svc, version) { | ||
return AWS.apiLoader.services[svc][version]; | ||
}; | ||
/** | ||
* @api private | ||
*/ | ||
AWS.apiLoader.services = {}; | ||
// Load the DOMParser XML parser | ||
@@ -10,1 +20,2 @@ AWS.XML.Parser = require('./xml/browser_parser'); | ||
if (typeof window !== 'undefined') window.AWS = AWS; | ||
if (typeof module !== 'undefined') module.exports = AWS; |
@@ -181,3 +181,6 @@ var AWS = require('./core'); | ||
AWS.util.each.call(this, options, function (key, value) { | ||
if (allowUnknownKeys || this.keys.hasOwnProperty(key)) this[key] = value; | ||
if (allowUnknownKeys || this.keys.hasOwnProperty(key) || | ||
AWS.Service.hasService(key)) { | ||
this[key] = value; | ||
} | ||
}); | ||
@@ -184,0 +187,0 @@ }, |
@@ -20,3 +20,3 @@ /** | ||
*/ | ||
VERSION: '2.0.19', | ||
VERSION: '2.0.21', | ||
@@ -66,3 +66,8 @@ /** | ||
util: require('./util') | ||
util: require('./util'), | ||
/** | ||
* @api private | ||
*/ | ||
apiLoader: function() { throw new Error('No API loader set'); } | ||
}); | ||
@@ -69,0 +74,0 @@ |
@@ -57,3 +57,3 @@ var AWS = require('./core'); | ||
* networking error occurs. | ||
* @return [Object] | ||
* @return [Error] | ||
* * code [String] a unique short code representing the | ||
@@ -64,2 +64,9 @@ * error that was emitted. | ||
* retryable. | ||
* * statusCode [Numeric] in the case of a request that reached the service, | ||
* this value contains the response status code. | ||
* * time [Date] the date time object when the error occurred. | ||
* * hostname [String] set when a networking error occurs to easily | ||
* identify the endpoint of the request. | ||
* * region [String] set when a networking error occurs to easily | ||
* identify the region of the request. | ||
* | ||
@@ -66,0 +73,0 @@ * @!attribute requestId |
@@ -35,3 +35,6 @@ var AWS = require('./core'); | ||
initialize: function initialize(config) { | ||
var svcConfig = AWS.config[this.serviceIdentifier]; | ||
this.config = new AWS.Config(AWS.config); | ||
if (svcConfig) this.config.update(svcConfig, true); | ||
if (config) this.config.update(config, true); | ||
@@ -407,2 +410,3 @@ | ||
defineService: function defineService(serviceIdentifier, versions, features) { | ||
AWS.Service._serviceMap[serviceIdentifier] = true; | ||
if (!Array.isArray(versions)) { | ||
@@ -465,4 +469,3 @@ features = versions; | ||
try { | ||
var apis = AWS.util.nodeRequire('aws-sdk-apis'); | ||
setApi(apis.load(superclass.serviceIdentifier, version)); | ||
setApi(AWS.apiLoader(superclass.serviceIdentifier, version)); | ||
} catch (err) { | ||
@@ -485,3 +488,15 @@ throw AWS.util.error(err, { | ||
return svc; | ||
} | ||
}, | ||
/** | ||
* @api private | ||
*/ | ||
hasService: function(identifier) { | ||
return AWS.Service._serviceMap.hasOwnProperty(identifier); | ||
}, | ||
/** | ||
* @api private | ||
*/ | ||
_serviceMap: {} | ||
}); |
var fs = require('fs'); | ||
var path = require('path'); | ||
var AWS = require('./core'); | ||
var apis = require('aws-sdk-apis'); | ||
var apis = require('./api_loader'); | ||
@@ -6,0 +6,0 @@ // define services using map |
{ | ||
"name": "aws-sdk", | ||
"description": "AWS SDK for JavaScript", | ||
"version": "2.0.19", | ||
"version": "2.0.21", | ||
"author": { | ||
@@ -30,3 +30,2 @@ "name":"Amazon Web Services", | ||
"dependencies": { | ||
"aws-sdk-apis": ">=3.1.0 <4.0.0", | ||
"xml2js": "0.2.6", | ||
@@ -36,2 +35,4 @@ "xmlbuilder": "0.4.2" | ||
"main": "lib/aws.js", | ||
"browser": "lib/browser.js", | ||
"browserify": { "transform": "./dist-tools/transform.js" }, | ||
"directories": { | ||
@@ -38,0 +39,0 @@ "lib": "lib" |
@@ -23,3 +23,3 @@ # AWS SDK for JavaScript | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.19.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.21.min.js"></script> | ||
@@ -63,4 +63,3 @@ ### In Node.js | ||
<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</td><td>AWS.CloudSearch</td><td>2013-01-01</td></tr> | ||
<tr><td>Amazon CloudSearch Domain</td><td>AWS.CloudSearchDomain</td><td>2013-01-01</td></tr> | ||
@@ -71,15 +70,13 @@ <tr><td>Amazon CloudWatch</td><td>AWS.CloudWatch</td><td>2010-08-01</td></tr> | ||
<tr><td>Amazon Cognito Sync</td><td>AWS.CognitoSync</td><td>2014-06-30</td></tr> | ||
<tr><td rowspan="2">Amazon DynamoDB</td><td rowspan="2">AWS.DynamoDB</td><td>2011-12-05</td></tr> | ||
<tr><td>2012-08-10</td></tr> | ||
<tr><td>Amazon Elastic Compute Cloud</td><td>AWS.EC2</td><td>2014-05-01</td></tr> | ||
<tr><td>Amazon DynamoDB</td><td>AWS.DynamoDB</td><td>2012-08-10</td></tr> | ||
<tr><td>Amazon Elastic Compute Cloud</td><td>AWS.EC2</td><td>2014-06-15</td></tr> | ||
<tr><td>Amazon Elastic MapReduce</td><td>AWS.EMR</td><td>2009-03-31</td></tr> | ||
<tr><td>Amazon Elastic Transcoder</td><td>AWS.ElasticTranscoder</td><td>2012-09-25</td></tr> | ||
<tr><td>Amazon ElastiCache</td><td>AWS.ElastiCache</td><td>2014-03-24</td></tr> | ||
<tr><td>Amazon ElastiCache</td><td>AWS.ElastiCache</td><td>2014-07-15</td></tr> | ||
<tr><td>Amazon Glacier</td><td>AWS.Glacier</td><td>2012-06-01</td></tr> | ||
<tr><td>Amazon Kinesis</td><td>AWS.Kinesis</td><td>2013-12-02</td></tr> | ||
<tr><td>Amazon Redshift</td><td>AWS.Redshift</td><td>2012-12-01</td></tr> | ||
<tr><td rowspan="3">Amazon Relational Database Service</td><td rowspan="3">AWS.RDS</td><td>2013-01-10</td></tr> | ||
<tr><td>2013-02-12</td></tr> | ||
<tr><td>2013-09-09</td></tr> | ||
<tr><td>Amazon Relational Database Service</td><td>AWS.RDS</td><td>2014-09-01</td></tr> | ||
<tr><td>Amazon Route 53</td><td>AWS.Route53</td><td>2013-04-01</td></tr> | ||
<tr><td>Amazon Route 53 Domains</td><td>AWS.Route53Domains</td><td>2014-05-15</td></tr> | ||
<tr><td>Amazon Simple Email Service</td><td>AWS.SES</td><td>2010-12-01</td></tr> | ||
@@ -86,0 +83,0 @@ <tr><td>Amazon Simple Notification Service</td><td>AWS.SNS</td><td>2010-03-31</td></tr> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1705466
2
174
64010
106
18
4
- Removedaws-sdk-apis@>=3.1.0 <4.0.0
- Removedaws-sdk-apis@3.1.10(transitive)