Comparing version 2.1.12 to 2.1.13
{ | ||
"version": "2.0", | ||
"metadata": { | ||
"apiVersion": "2014-11-13", | ||
"endpointPrefix": "ecs", | ||
"jsonVersion": "1.1", | ||
"serviceAbbreviation": "Amazon ECS", | ||
"serviceFullName": "Amazon EC2 Container Service", | ||
"signatureVersion": "v4", | ||
"signingName": "ecs", | ||
"xmlNamespace": "http://ecs.amazonaws.com/doc/2014-11-13/", | ||
"protocol": "query" | ||
"targetPrefix": "AmazonEC2ContainerServiceV20141113", | ||
"protocol": "json" | ||
}, | ||
@@ -21,3 +22,2 @@ "operations": { | ||
"output": { | ||
"resultWrapper": "CreateClusterResult", | ||
"type": "structure", | ||
@@ -42,3 +42,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "DeleteClusterResult", | ||
"type": "structure", | ||
@@ -67,3 +66,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "DeregisterContainerInstanceResult", | ||
"type": "structure", | ||
@@ -88,3 +86,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "DeregisterTaskDefinitionResult", | ||
"type": "structure", | ||
@@ -108,3 +105,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "DescribeClustersResult", | ||
"type": "structure", | ||
@@ -119,3 +115,3 @@ "members": { | ||
"failures": { | ||
"shape": "Su" | ||
"shape": "S11" | ||
} | ||
@@ -139,3 +135,2 @@ } | ||
"output": { | ||
"resultWrapper": "DescribeContainerInstancesResult", | ||
"type": "structure", | ||
@@ -150,3 +145,3 @@ "members": { | ||
"failures": { | ||
"shape": "Su" | ||
"shape": "S11" | ||
} | ||
@@ -167,3 +162,2 @@ } | ||
"output": { | ||
"resultWrapper": "DescribeTaskDefinitionResult", | ||
"type": "structure", | ||
@@ -191,10 +185,9 @@ "members": { | ||
"output": { | ||
"resultWrapper": "DescribeTasksResult", | ||
"type": "structure", | ||
"members": { | ||
"tasks": { | ||
"shape": "S13" | ||
"shape": "S1a" | ||
}, | ||
"failures": { | ||
"shape": "Su" | ||
"shape": "S11" | ||
} | ||
@@ -213,3 +206,2 @@ } | ||
"output": { | ||
"resultWrapper": "DiscoverPollEndpointResult", | ||
"type": "structure", | ||
@@ -232,3 +224,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "ListClustersResult", | ||
"type": "structure", | ||
@@ -255,3 +246,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "ListContainerInstancesResult", | ||
"type": "structure", | ||
@@ -266,2 +256,23 @@ "members": { | ||
}, | ||
"ListTaskDefinitionFamilies": { | ||
"input": { | ||
"type": "structure", | ||
"members": { | ||
"familyPrefix": {}, | ||
"nextToken": {}, | ||
"maxResults": { | ||
"type": "integer" | ||
} | ||
} | ||
}, | ||
"output": { | ||
"type": "structure", | ||
"members": { | ||
"families": { | ||
"shape": "Sg" | ||
}, | ||
"nextToken": {} | ||
} | ||
} | ||
}, | ||
"ListTaskDefinitions": { | ||
@@ -279,3 +290,2 @@ "input": { | ||
"output": { | ||
"resultWrapper": "ListTaskDefinitionsResult", | ||
"type": "structure", | ||
@@ -304,3 +314,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "ListTasksResult", | ||
"type": "structure", | ||
@@ -328,3 +337,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "RegisterContainerInstanceResult", | ||
"type": "structure", | ||
@@ -349,2 +357,5 @@ "members": { | ||
"shape": "Sl" | ||
}, | ||
"volumes": { | ||
"shape": "Sv" | ||
} | ||
@@ -354,3 +365,2 @@ } | ||
"output": { | ||
"resultWrapper": "RegisterTaskDefinitionResult", | ||
"type": "structure", | ||
@@ -374,3 +384,3 @@ "members": { | ||
"overrides": { | ||
"shape": "S15" | ||
"shape": "S1c" | ||
}, | ||
@@ -383,10 +393,9 @@ "count": { | ||
"output": { | ||
"resultWrapper": "RunTaskResult", | ||
"type": "structure", | ||
"members": { | ||
"tasks": { | ||
"shape": "S13" | ||
"shape": "S1a" | ||
}, | ||
"failures": { | ||
"shape": "Su" | ||
"shape": "S11" | ||
} | ||
@@ -407,3 +416,3 @@ } | ||
"overrides": { | ||
"shape": "S15" | ||
"shape": "S1c" | ||
}, | ||
@@ -416,10 +425,9 @@ "containerInstances": { | ||
"output": { | ||
"resultWrapper": "StartTaskResult", | ||
"type": "structure", | ||
"members": { | ||
"tasks": { | ||
"shape": "S13" | ||
"shape": "S1a" | ||
}, | ||
"failures": { | ||
"shape": "Su" | ||
"shape": "S11" | ||
} | ||
@@ -441,7 +449,6 @@ } | ||
"output": { | ||
"resultWrapper": "StopTaskResult", | ||
"type": "structure", | ||
"members": { | ||
"task": { | ||
"shape": "S14" | ||
"shape": "S1b" | ||
} | ||
@@ -464,3 +471,3 @@ } | ||
"networkBindings": { | ||
"shape": "S1b" | ||
"shape": "S1i" | ||
} | ||
@@ -470,3 +477,2 @@ } | ||
"output": { | ||
"resultWrapper": "SubmitContainerStateChangeResult", | ||
"type": "structure", | ||
@@ -489,3 +495,2 @@ "members": { | ||
"output": { | ||
"resultWrapper": "SubmitTaskStateChangeResult", | ||
"type": "structure", | ||
@@ -560,2 +565,5 @@ "members": { | ||
"type": "integer" | ||
}, | ||
"volumes": { | ||
"shape": "Sv" | ||
} | ||
@@ -612,2 +620,27 @@ } | ||
} | ||
}, | ||
"mountPoints": { | ||
"type": "list", | ||
"member": { | ||
"type": "structure", | ||
"members": { | ||
"sourceVolume": {}, | ||
"containerPath": {}, | ||
"readOnly": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
}, | ||
"volumesFrom": { | ||
"type": "list", | ||
"member": { | ||
"type": "structure", | ||
"members": { | ||
"sourceContainer": {}, | ||
"readOnly": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
} | ||
@@ -617,3 +650,3 @@ } | ||
}, | ||
"Su": { | ||
"Sv": { | ||
"type": "list", | ||
@@ -623,2 +656,17 @@ "member": { | ||
"members": { | ||
"name": {}, | ||
"host": { | ||
"type": "structure", | ||
"members": { | ||
"sourcePath": {} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"S11": { | ||
"type": "list", | ||
"member": { | ||
"type": "structure", | ||
"members": { | ||
"arn": {}, | ||
@@ -629,9 +677,9 @@ "reason": {} | ||
}, | ||
"S13": { | ||
"S1a": { | ||
"type": "list", | ||
"member": { | ||
"shape": "S14" | ||
"shape": "S1b" | ||
} | ||
}, | ||
"S14": { | ||
"S1b": { | ||
"type": "structure", | ||
@@ -644,3 +692,3 @@ "members": { | ||
"overrides": { | ||
"shape": "S15" | ||
"shape": "S1c" | ||
}, | ||
@@ -663,3 +711,3 @@ "lastStatus": {}, | ||
"networkBindings": { | ||
"shape": "S1b" | ||
"shape": "S1i" | ||
} | ||
@@ -671,3 +719,3 @@ } | ||
}, | ||
"S15": { | ||
"S1c": { | ||
"type": "structure", | ||
@@ -689,3 +737,3 @@ "members": { | ||
}, | ||
"S1b": { | ||
"S1i": { | ||
"type": "list", | ||
@@ -692,0 +740,0 @@ "member": { |
{ | ||
"version": "2.0", | ||
"metadata": { | ||
@@ -123,2 +124,5 @@ "apiVersion": "2012-09-25", | ||
"shape": "S2b" | ||
}, | ||
"Warnings": { | ||
"shape": "S2d" | ||
} | ||
@@ -144,9 +148,9 @@ } | ||
"Video": { | ||
"shape": "S2f" | ||
"shape": "S2h" | ||
}, | ||
"Audio": { | ||
"shape": "S2v" | ||
"shape": "S2x" | ||
}, | ||
"Thumbnails": { | ||
"shape": "S32" | ||
"shape": "S34" | ||
} | ||
@@ -159,3 +163,3 @@ } | ||
"Preset": { | ||
"shape": "S36" | ||
"shape": "S38" | ||
}, | ||
@@ -241,3 +245,3 @@ "Warning": {} | ||
"Jobs": { | ||
"shape": "S3f" | ||
"shape": "S3h" | ||
}, | ||
@@ -277,3 +281,3 @@ "NextPageToken": {} | ||
"Jobs": { | ||
"shape": "S3f" | ||
"shape": "S3h" | ||
}, | ||
@@ -339,3 +343,3 @@ "NextPageToken": {} | ||
"member": { | ||
"shape": "S36" | ||
"shape": "S38" | ||
} | ||
@@ -395,2 +399,5 @@ }, | ||
"shape": "S2b" | ||
}, | ||
"Warnings": { | ||
"shape": "S2d" | ||
} | ||
@@ -421,3 +428,3 @@ } | ||
"Preset": { | ||
"shape": "S36" | ||
"shape": "S38" | ||
} | ||
@@ -497,2 +504,5 @@ } | ||
"shape": "S2b" | ||
}, | ||
"Warnings": { | ||
"shape": "S2d" | ||
} | ||
@@ -851,3 +861,13 @@ } | ||
}, | ||
"S2f": { | ||
"S2d": { | ||
"type": "list", | ||
"member": { | ||
"type": "structure", | ||
"members": { | ||
"Code": {}, | ||
"Message": {} | ||
} | ||
} | ||
}, | ||
"S2h": { | ||
"type": "structure", | ||
@@ -893,3 +913,3 @@ "members": { | ||
}, | ||
"S2v": { | ||
"S2x": { | ||
"type": "structure", | ||
@@ -909,3 +929,3 @@ "members": { | ||
}, | ||
"S32": { | ||
"S34": { | ||
"type": "structure", | ||
@@ -923,3 +943,3 @@ "members": { | ||
}, | ||
"S36": { | ||
"S38": { | ||
"type": "structure", | ||
@@ -933,9 +953,9 @@ "members": { | ||
"Audio": { | ||
"shape": "S2v" | ||
"shape": "S2x" | ||
}, | ||
"Video": { | ||
"shape": "S2f" | ||
"shape": "S2h" | ||
}, | ||
"Thumbnails": { | ||
"shape": "S32" | ||
"shape": "S34" | ||
}, | ||
@@ -945,3 +965,3 @@ "Type": {} | ||
}, | ||
"S3f": { | ||
"S3h": { | ||
"type": "list", | ||
@@ -948,0 +968,0 @@ "member": { |
@@ -20,3 +20,3 @@ /** | ||
*/ | ||
VERSION: '2.1.12', | ||
VERSION: '2.1.13', | ||
@@ -23,0 +23,0 @@ /** |
@@ -186,4 +186,4 @@ var AWS = require('../core'); | ||
var self = this; | ||
self.cognito.getCredentialsForIdentity(function(err, data){ | ||
if (!err){ | ||
self.cognito.getCredentialsForIdentity(function(err, data) { | ||
if (!err) { | ||
self.cacheId(data); | ||
@@ -279,3 +279,5 @@ self.data = data; | ||
setStorage: function setStorage(key, val) { | ||
this.storage[this.localStorageKey[key] + this.params.IdentityPoolId] = val; | ||
try { | ||
this.storage[this.localStorageKey[key] + this.params.IdentityPoolId] = val; | ||
} catch (_) {} | ||
}, | ||
@@ -282,0 +284,0 @@ |
@@ -23,3 +23,3 @@ var Collection = require('./collection'); | ||
property(this, 'type', shape.type); | ||
property(this, 'location', shape.location || 'body'); | ||
property(this, 'location', shape.location || this.location || 'body'); | ||
property(this, 'name', this.name || shape.xmlName || shape.queryName || | ||
@@ -31,2 +31,3 @@ shape.locationName || memberName); | ||
property(this, 'isQueryName', shape.queryName ? true : false, false); | ||
property(this, 'isLocationName', shape.locationName ? true : false, false); | ||
@@ -33,0 +34,0 @@ if (options.documentation) { |
@@ -23,4 +23,4 @@ var AWS = require('../core'); | ||
} else { | ||
req.httpRequest.body = builder.toXML(params, input, input.shape || | ||
util.string.upperFirst(req.operation) + 'Request'); | ||
req.httpRequest.body = builder.toXML(params, input, input.name || | ||
input.shape || util.string.upperFirst(req.operation) + 'Request'); | ||
} | ||
@@ -73,3 +73,3 @@ } | ||
parser = new AWS.XML.Parser(); | ||
util.update(resp.data, parser.parse(body.toString(), payloadMember)); | ||
resp.data[payload] = parser.parse(body.toString(), payloadMember); | ||
} else { | ||
@@ -76,0 +76,0 @@ resp.data[payload] = body.toString(); |
@@ -96,4 +96,6 @@ var util = require('../util'); | ||
data[name] = {}; | ||
var location = member.isLocationName ? member.name : ''; | ||
var pattern = new RegExp('^' + location + '(.+)', 'i'); | ||
util.each(r.headers, function (k, v) { | ||
var result = k.match(new RegExp('^' + member.name + '(.+)', 'i')); | ||
var result = k.match(pattern); | ||
if (result !== null) { | ||
@@ -100,0 +102,0 @@ data[name][result[1]] = v; |
@@ -393,3 +393,3 @@ var AWS = require('../core'); | ||
self.queueChunks(chunk, partNumber); | ||
self.multipartReq.on('error', function(err){ | ||
self.multipartReq.on('error', function(err) { | ||
self.cleanup(err); | ||
@@ -396,0 +396,0 @@ }); |
@@ -38,2 +38,3 @@ var AWS = require('../core'); | ||
request.addListener('extractData', this.extractData); | ||
request.addListener('extractData', AWS.util.hoistPayloadMember); | ||
request.addListener('beforePresign', this.prepareSignedUrl); | ||
@@ -40,0 +41,0 @@ }, |
@@ -210,3 +210,3 @@ /* eslint guard-for-in:0 */ | ||
fn: { | ||
noop: function(){}, | ||
noop: function() {}, | ||
@@ -718,5 +718,25 @@ /** | ||
}, enumerable); | ||
}, | ||
/** | ||
* TODO Remove in major version revision | ||
* This backfill populates response data without the | ||
* top-level payload name. | ||
* | ||
* @api private | ||
*/ | ||
hoistPayloadMember: function hoistPayloadMember(resp) { | ||
var req = resp.request; | ||
var operation = req.operation; | ||
var payloadMember = req.service.api.operations[operation].output.payload; | ||
var payload = resp.data[payloadMember]; | ||
if (typeof payloadMember === 'string' && typeof payload === 'object') { | ||
AWS.util.each(payload, function(key, value) { | ||
AWS.util.property(resp.data, key, value, false); | ||
}); | ||
} | ||
} | ||
}; | ||
module.exports = util; |
{ | ||
"name": "aws-sdk", | ||
"description": "AWS SDK for JavaScript", | ||
"version": "2.1.12", | ||
"version": "2.1.13", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name":"Amazon Web Services", |
@@ -27,3 +27,3 @@ # AWS SDK for JavaScript | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.12.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.13.min.js"></script> | ||
@@ -30,0 +30,0 @@ The AWS SDK is also compatible with [browserify](http://browserify.org). |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance 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
1678959
184
65818
1