aws-sdk 2.1366.0 → 2.1367.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1366.0',
23
+ VERSION: '2.1367.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -5,7 +5,7 @@ AWS.util.update(AWS.SQS.prototype, {
5
5
  * @api private
6
6
  */
7
7
  setupRequestListeners: function setupRequestListeners(request) {
8
- request.addListener('build', this.buildEndpoint);
8
+ request.addListener('build', this.buildEndpoint.bind(this));
9
9
 
10
10
  if (request.service.config.computeChecksums) {
11
11
  if (request.operation === 'sendMessage') {
@@ -118,7 +118,8 @@ AWS.util.update(AWS.SQS.prototype, {
118
118
  * @api private
119
119
  */
120
120
  buildEndpoint: function buildEndpoint(request) {
121
- var url = request.httpRequest.params.QueueUrl;
121
+ var params = request.httpRequest.params || this.config.params;
122
+ var url = params.QueueUrl;
122
123
  if (url) {
123
124
  request.httpRequest.endpoint = new AWS.Endpoint(url);
124
125
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1366.0",
4
+ "version": "2.1367.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",