Socket
Socket
Sign inDemoInstall

aws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1964
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.29 to 2.0.30

147

apis/iam-2010-05-08.min.json

@@ -526,2 +526,89 @@ {

},
"GetAccountAuthorizationDetails": {
"input": {
"type": "structure",
"members": {
"Filter": {
"type": "list",
"member": {}
},
"MaxItems": {
"type": "integer"
},
"Marker": {}
}
},
"output": {
"resultWrapper": "GetAccountAuthorizationDetailsResult",
"type": "structure",
"members": {
"UserDetailList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Path": {},
"UserName": {},
"UserId": {},
"Arn": {},
"CreateDate": {
"type": "timestamp"
},
"UserPolicyList": {
"shape": "S2i"
},
"GroupList": {
"type": "list",
"member": {}
}
}
}
},
"GroupDetailList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Path": {},
"GroupName": {},
"GroupId": {},
"Arn": {},
"CreateDate": {
"type": "timestamp"
},
"GroupPolicyList": {
"shape": "S2i"
}
}
}
},
"RoleDetailList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Path": {},
"RoleName": {},
"RoleId": {},
"Arn": {},
"CreateDate": {
"type": "timestamp"
},
"AssumeRolePolicyDocument": {},
"InstanceProfileList": {
"shape": "S2p"
},
"RolePolicyList": {
"shape": "S2i"
}
}
}
},
"IsTruncated": {
"type": "boolean"
},
"Marker": {}
}
}
},
"GetAccountPasswordPolicy": {

@@ -629,3 +716,3 @@ "output": {

"Users": {
"shape": "S2r"
"shape": "S35"
},

@@ -838,3 +925,3 @@ "IsTruncated": {

"ServerCertificateMetadata": {
"shape": "S39"
"shape": "S3n"
},

@@ -984,3 +1071,3 @@ "CertificateBody": {},

"PolicyNames": {
"shape": "S3p"
"shape": "S43"
},

@@ -1013,3 +1100,3 @@ "IsTruncated": {

"Groups": {
"shape": "S3t"
"shape": "S47"
},

@@ -1045,3 +1132,3 @@ "IsTruncated": {

"Groups": {
"shape": "S3t"
"shape": "S47"
},

@@ -1074,3 +1161,3 @@ "IsTruncated": {

"InstanceProfiles": {
"shape": "S3y"
"shape": "S2p"
},

@@ -1106,3 +1193,3 @@ "IsTruncated": {

"InstanceProfiles": {
"shape": "S3y"
"shape": "S2p"
},

@@ -1202,3 +1289,3 @@ "IsTruncated": {

"PolicyNames": {
"shape": "S3p"
"shape": "S43"
},

@@ -1288,3 +1375,3 @@ "IsTruncated": {

"member": {
"shape": "S39"
"shape": "S3n"
}

@@ -1320,3 +1407,3 @@ },

"member": {
"shape": "S4n"
"shape": "S50"
}

@@ -1353,3 +1440,3 @@ },

"PolicyNames": {
"shape": "S3p"
"shape": "S43"
},

@@ -1382,3 +1469,3 @@ "IsTruncated": {

"Users": {
"shape": "S2r"
"shape": "S35"
},

@@ -1714,3 +1801,3 @@ "IsTruncated": {

"ServerCertificateMetadata": {
"shape": "S39"
"shape": "S3n"
}

@@ -1739,3 +1826,3 @@ }

"Certificate": {
"shape": "S4n"
"shape": "S50"
}

@@ -1890,9 +1977,25 @@ }

},
"S2r": {
"S2i": {
"type": "list",
"member": {
"type": "structure",
"members": {
"PolicyName": {},
"PolicyDocument": {}
}
}
},
"S2p": {
"type": "list",
"member": {
"shape": "St"
}
},
"S35": {
"type": "list",
"member": {
"shape": "S1f"
}
},
"S39": {
"S3n": {
"type": "structure",

@@ -1918,7 +2021,7 @@ "required": [

},
"S3p": {
"S43": {
"type": "list",
"member": {}
},
"S3t": {
"S47": {
"type": "list",

@@ -1929,9 +2032,3 @@ "member": {

},
"S3y": {
"type": "list",
"member": {
"shape": "St"
}
},
"S4n": {
"S50": {
"type": "structure",

@@ -1938,0 +2035,0 @@ "required": [

@@ -309,2 +309,54 @@ {

},
"PutRecords": {
"input": {
"type": "structure",
"required": [
"Records",
"StreamName"
],
"members": {
"Records": {
"type": "list",
"member": {
"type": "structure",
"required": [
"Data",
"PartitionKey"
],
"members": {
"Data": {
"type": "blob"
},
"ExplicitHashKey": {},
"PartitionKey": {}
}
}
},
"StreamName": {}
}
},
"output": {
"type": "structure",
"required": [
"Records"
],
"members": {
"FailedRecordCount": {
"type": "integer"
},
"Records": {
"type": "list",
"member": {
"type": "structure",
"members": {
"SequenceNumber": {},
"ShardId": {},
"ErrorCode": {},
"ErrorMessage": {}
}
}
}
}
}
},
"RemoveTagsFromStream": {

@@ -311,0 +363,0 @@ "input": {

@@ -1011,2 +1011,35 @@ {

}
},
"UpdateHostedZoneComment": {
"http": {
"requestUri": "/2013-04-01/hostedzone/{Id}"
},
"input": {
"xmlNamespace": {
"uri": "https://route53.amazonaws.com/doc/2013-04-01/"
},
"locationName": "UpdateHostedZoneCommentRequest",
"type": "structure",
"required": [
"Id"
],
"members": {
"Id": {
"location": "uri",
"locationName": "Id"
},
"Comment": {}
}
},
"output": {
"type": "structure",
"required": [
"HostedZone"
],
"members": {
"HostedZone": {
"shape": "S1t"
}
}
}
}

@@ -1013,0 +1046,0 @@ },

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

*
* @!attribute s3BucketEndpoint
* @note Setting this configuration option requires an `endpoint` to be
* provided explicitly to the service constructor.
* @return [Boolean] whether the provided endpoint addresses an individual
* bucket (false if it addresses the root API endpoint).
*
* @!attribute httpOptions

@@ -137,2 +143,6 @@ * @return [map] A set of options to pass to the low-level HTTP request.

* style URLs for S3 objects.
* @option options s3BucketEndpoint [Boolean] whether the provided endpoint
* addresses an individual bucket (false if it addresses the root API
* endpoint). Note that setting this configuration option requires an
* `endpoint` to be provided explicitly to the service constructor.
* @option options httpOptions [map] A set of options to pass to the low-level

@@ -379,2 +389,3 @@ * HTTP request. Currently supported options are:

s3ForcePathStyle: false,
s3BucketEndpoint: false,
computeChecksums: true,

@@ -381,0 +392,0 @@ convertResponseTypes: true,

2

lib/core.js

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

*/
VERSION: '2.0.29',
VERSION: '2.0.30',

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

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

if (!this.config.region) this.config.region = 'us-east-1';
if (!this.config.endpoint && this.config.s3BucketEndpoint) {
var msg = 'An endpoint must be provided when configuring ' +
'`s3BucketEndpoint` to true.';
throw AWS.util.error(new Error(),
{name: 'InvalidEndpoint', message: msg});
}
},

@@ -18,2 +25,3 @@

request.addListener('validate', this.validateScheme);
request.addListener('validate', this.validateBucketEndpoint);
request.addListener('build', this.addContentType);

@@ -47,2 +55,14 @@ request.addListener('build', this.populateURI);

/*
* @api private
*
*/
validateBucketEndpoint: function(req) {
if (!req.params.Bucket && req.service.config.s3BucketEndpoint) {
var msg = 'Cannot send requests to root API with `s3BucketEndpoint` set.';
throw AWS.util.error(new Error(),
{ code: 'ConfigError', message: msg });
}
},
/**

@@ -62,10 +82,13 @@ * S3 prefers dns-compatible bucket names to be moved from the uri path

if (!req.service.pathStyleBucketName(b)) {
httpRequest.endpoint.hostname = b + '.' + httpRequest.endpoint.hostname;
if (!req.service.config.s3BucketEndpoint) {
httpRequest.endpoint.hostname =
b + '.' + httpRequest.endpoint.hostname;
var port = httpRequest.endpoint.port;
if (port !== 80 && port !== 443) {
httpRequest.endpoint.host = httpRequest.endpoint.hostname + ':' +
httpRequest.endpoint.port;
} else {
httpRequest.endpoint.host = httpRequest.endpoint.hostname;
var port = httpRequest.endpoint.port;
if (port !== 80 && port !== 443) {
httpRequest.endpoint.host = httpRequest.endpoint.hostname + ':' +
httpRequest.endpoint.port;
} else {
httpRequest.endpoint.host = httpRequest.endpoint.hostname;
}
}

@@ -232,2 +255,3 @@

if (this.config.s3ForcePathStyle) return true;
if (this.config.s3BucketEndpoint) return false;

@@ -234,0 +258,0 @@ if (this.dnsCompatibleBucketName(bucketName)) {

{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.0.29",
"version": "2.0.30",
"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.0.29.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.30.min.js"></script>

@@ -30,0 +30,0 @@ The AWS SDK is also compatible with [browserify](http://browserify.org).

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