aws-api-gateway-client
Advanced tools
Comparing version 0.3.3 to 0.3.5
@@ -62,3 +62,3 @@ "use strict"; | ||
var headers = _objectSpread({}, _utils["default"].copy(request.headers), {}, config.headers); // If the user has not specified an override for Content type the use default | ||
var headers = _objectSpread(_objectSpread({}, _utils["default"].copy(request.headers)), config.headers); // If the user has not specified an override for Content type the use default | ||
@@ -87,3 +87,5 @@ | ||
timeout: timeout, | ||
data: body | ||
data: body, | ||
method: verb, | ||
url: url | ||
}; | ||
@@ -116,9 +118,5 @@ | ||
}); | ||
return client.request({ | ||
method: verb | ||
}); | ||
return client.request(simpleHttpRequest); | ||
} | ||
simpleHttpRequest.method = verb; | ||
simpleHttpRequest.url = url; | ||
return (0, _axios["default"])(simpleHttpRequest); | ||
@@ -132,2 +130,2 @@ }; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvYXBpR2F0ZXdheUNvcmUvc2ltcGxlSHR0cENsaWVudC5qcyJdLCJuYW1lcyI6WyJzaW1wbGVIdHRwQ2xpZW50RmFjdG9yeSIsIm5ld0NsaWVudCIsImNvbmZpZyIsImJ1aWxkQ2Fub25pY2FsUXVlcnlTdHJpbmciLCJxdWVyeVBhcmFtcyIsIk9iamVjdCIsImtleXMiLCJsZW5ndGgiLCJjYW5vbmljYWxRdWVyeVN0cmluZyIsInByb3BlcnR5IiwicHJvdG90eXBlIiwiaGFzT3duUHJvcGVydHkiLCJjYWxsIiwiZW5jb2RlVVJJQ29tcG9uZW50Iiwic3Vic3RyIiwic2ltcGxlSHR0cENsaWVudCIsImVuZHBvaW50IiwidXRpbHMiLCJhc3NlcnREZWZpbmVkIiwibWFrZVJlcXVlc3QiLCJyZXF1ZXN0IiwidmVyYiIsInBhdGgiLCJjb3B5IiwidGltZW91dCIsInVuZGVmaW5lZCIsImhlYWRlcnMiLCJkZWZhdWx0Q29udGVudFR5cGUi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AgICAgIGF4aW9zUmV0cnkoY2xpZW50LCB7XG4gICAgICAgIHJldHJpZXM6IGNvbmZpZy5yZXRyaWVzLFxuICAgICAgICByZXRyeUNvbmRpdGlvbjogY29uZmlnLnJldHJ5Q29uZGl0aW9uLFxuICAgICAgICByZXRyeURlbGF5LFxuICAgICAgfSk7XG4gICAgICByZXR1cm4gY2xpZW50LnJlcXVlc3Qoc2ltcGxlSHR0cFJlcXVlc3QpO1xuICAgIH1cbiAgICByZXR1cm4gYXhpb3Moc2ltcGxlSHR0cFJlcXVlc3QpO1xuICB9O1xuXG4gIHJldHVybiBzaW1wbGVIdHRwQ2xpZW50O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgc2ltcGxlSHR0cENsaWVudEZhY3Rvcnk7XG4iXX0= |
{ | ||
"name": "aws-api-gateway-client", | ||
"version": "0.3.3", | ||
"version": "0.3.5", | ||
"description": "A module for AWS API Gateway client", | ||
@@ -32,5 +32,6 @@ "repository": { | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"axios-retry": "^3.0.1", | ||
"crypto-js": "^3.1.9-1", | ||
"@babel/runtime": "^7.9.6", | ||
"axios": "^0.19.2", | ||
"axios-retry": "^3.1.8", | ||
"crypto-js": "^4.0.0", | ||
"url": "^0.11.0", | ||
@@ -40,12 +41,11 @@ "url-template": "^2.0.8" | ||
"devDependencies": { | ||
"@babel/cli": "^7.7.7", | ||
"@babel/core": "^7.7.7", | ||
"@babel/plugin-transform-runtime": "^7.7.6", | ||
"@babel/preset-env": "^7.7.7", | ||
"@babel/register": "^7.7.7", | ||
"@babel/runtime": "^7.7.7", | ||
"ava": "^2.4.0", | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.6", | ||
"@babel/plugin-transform-runtime": "^7.9.6", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/register": "^7.9.0", | ||
"ava": "^3.8.2", | ||
"eslint": "^6.8.0", | ||
"nyc": "^14.1.1" | ||
"nyc": "^15.1.0" | ||
} | ||
} |
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
8
91027
6
11
570
+ Added@babel/runtime@^7.9.6
+ Addedcrypto-js@4.2.0(transitive)
- Removedcrypto-js@3.3.0(transitive)
Updatedaxios@^0.19.2
Updatedaxios-retry@^3.1.8
Updatedcrypto-js@^4.0.0