aws-api-gateway-client
Advanced tools
Comparing version 0.2.13 to 0.2.14
@@ -60,3 +60,4 @@ 'use strict'; | ||
defaultAcceptType: 'application/json', | ||
systemClockOffset: 0 | ||
systemClockOffset: 0, | ||
headers: {} | ||
}, removeEmpty(config)); | ||
@@ -93,3 +94,4 @@ | ||
retries: config.retries, | ||
retryCondition: config.retryCondition | ||
retryCondition: config.retryCondition, | ||
headers: config.headers | ||
}; | ||
@@ -96,0 +98,0 @@ |
@@ -7,2 +7,18 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* | ||
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
/* eslint max-len: ["error", 100]*/ | ||
var _axios = require('axios'); | ||
@@ -22,18 +38,3 @@ | ||
var simpleHttpClientFactory = {}; /* | ||
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
/* eslint max-len: ["error", 100]*/ | ||
var simpleHttpClientFactory = {}; | ||
simpleHttpClientFactory.newClient = function (config) { | ||
@@ -66,6 +67,3 @@ function buildCanonicalQueryString(queryParams) { | ||
} | ||
var headers = _utils2.default.copy(request.headers); | ||
if (headers === undefined) { | ||
headers = {}; | ||
} | ||
var headers = _extends({}, _utils2.default.copy(request.headers), config.headers); | ||
@@ -72,0 +70,0 @@ // If the user has not specified an override for Content type the use default |
{ | ||
"name": "aws-api-gateway-client", | ||
"version": "0.2.13", | ||
"version": "0.2.14", | ||
"description": "A moduel for AWS API Gateway client", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
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
33458