Skip to content

Commit

Permalink
Merge pull request #86 from kndt84/fix-error
Browse files Browse the repository at this point in the history
Fix error
  • Loading branch information
kndt84 authored Dec 26, 2019
2 parents 10bd51f + 3a70dc5 commit 62f645b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-api-gateway-client",
"version": "0.3.2",
"version": "0.3.3",
"description": "A module for AWS API Gateway client",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions src/lib/apiGatewayCore/sigV4Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sigV4ClientFactory.newClient = function(config) {

let sortedQueryParams = [];
for (let property in queryParams) {
if (Object.prototype.hasOwnProperty.call(queryParams, "property")) {
if (Object.prototype.hasOwnProperty.call(queryParams, property)) {
sortedQueryParams.push(property);
}
}
Expand All @@ -91,7 +91,7 @@ sigV4ClientFactory.newClient = function(config) {
let canonicalHeaders = '';
let sortedKeys = [];
for (let property in headers) {
if (Object.prototype.hasOwnProperty.call(headers, "property")) {
if (Object.prototype.hasOwnProperty.call(headers, property)) {
sortedKeys.push(property);
}
}
Expand All @@ -106,7 +106,7 @@ sigV4ClientFactory.newClient = function(config) {
function buildCanonicalSignedHeaders(headers) {
let sortedKeys = [];
for (let property in headers) {
if (Object.prototype.hasOwnProperty.call(headers, "property")) {
if (Object.prototype.hasOwnProperty.call(headers, property)) {
sortedKeys.push(property.toLowerCase());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/apiGatewayCore/simpleHttpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ simpleHttpClientFactory.newClient = (config) => {

let canonicalQueryString = '';
for (let property in queryParams) {
if (Object.prototype.hasOwnProperty.call(queryParams, "property")) {
if (Object.prototype.hasOwnProperty.call(queryParams, property)) {
canonicalQueryString += encodeURIComponent(property)
+ '=' + encodeURIComponent(queryParams[property]) + '&';
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/apiGatewayCore/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const utils = {
let copy = obj.constructor();
let attr = null;
for (attr in obj) {
if (Object.prototype.hasOwnProperty.call(obj, "attr")) copy[attr] = obj[attr];
if (Object.prototype.hasOwnProperty.call(obj, attr)) copy[attr] = obj[attr];
}
return copy;
},
Expand All @@ -72,11 +72,11 @@ const utils = {
let merged = baseObj.constructor();
let attr = null;
for (attr in baseObj) {
if (Object.prototype.hasOwnProperty.call(baseObj, "attr")) merged[attr] = baseObj[attr];
if (Object.prototype.hasOwnProperty.call(baseObj, attr)) merged[attr] = baseObj[attr];
}
if (null == additionalProps || 'object' != typeof additionalProps) return baseObj;
for (attr in additionalProps) {
if (Object.prototype.hasOwnProperty.call(additionalProps, "attr")) {
if (Object.prototype.hasOwnProperty.call(additionalProps, attr)) {
merged[attr] = additionalProps[attr];
}
}
Expand Down

0 comments on commit 62f645b

Please sign in to comment.