@aws-sdk/node-http-handler
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
@@ -28,3 +28,3 @@ "use strict"; | ||
// if the request was already aborted, prevent doing extra work | ||
if (abortSignal && abortSignal.aborted) { | ||
if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { | ||
const abortError = new Error("Request aborted"); | ||
@@ -74,2 +74,2 @@ abortError.name = "AbortError"; | ||
exports.NodeHttpHandler = NodeHttpHandler; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1odHRwLWhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbm9kZS1odHRwLWhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQkFBK0I7QUFDL0IsNkJBQTZCO0FBQzdCLHNFQUFnRTtBQUVoRSwwREFBZ0Y7QUFDaEYscUVBQWdFO0FBQ2hFLDZEQUF3RDtBQUN4RCw2REFBd0Q7QUFDeEQsdUVBQWtFO0FBc0JsRSxNQUFhLGVBQWU7SUFRMUIsWUFBWSxFQUNWLGlCQUFpQixFQUNqQixhQUFhLEVBQ2IsU0FBUyxFQUNULFVBQVUsS0FDUyxFQUFFO1FBUnZCLHFKQUFxSjtRQUNySSxhQUFRLEdBQUcsRUFBRSxlQUFlLEVBQUUsVUFBVSxFQUFFLENBQUM7UUFRekQsSUFBSSxDQUFDLGlCQUFpQixHQUFHLGlCQUFpQixDQUFDO1FBQzNDLElBQUksQ0FBQyxhQUFhLEdBQUcsYUFBYSxDQUFDO1FBQ25DLE1BQU0sU0FBUyxHQUFHLElBQUksQ0FBQztRQUN2QixJQUFJLENBQUMsU0FBUyxHQUFHLFNBQVMsSUFBSSxJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxTQUFTLEVBQUUsQ0FBQyxDQUFDO1FBQzVELElBQUksQ0FBQyxVQUFVLEdBQ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ml0ZVJlcXVlc3RCb2R5KHJlcSwgcmVxdWVzdCk7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ== |
@@ -23,3 +23,3 @@ "use strict"; | ||
// if the request was already aborted, prevent doing extra work | ||
if (abortSignal && abortSignal.aborted) { | ||
if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { | ||
const abortError = new Error("Request aborted"); | ||
@@ -33,3 +33,3 @@ abortError.name = "AbortError"; | ||
// create the http2 request | ||
const req = this.getSession(`${protocol}//${hostname}${port ? `:${port}` : ""}`).request(Object.assign({}, request.headers, { [http2_1.constants.HTTP2_HEADER_PATH]: queryString | ||
const req = this.getSession(`${protocol}//${hostname}${port ? `:${port}` : ""}`).request(Object.assign(Object.assign({}, request.headers), { [http2_1.constants.HTTP2_HEADER_PATH]: queryString | ||
? `${path}?${queryString}` | ||
@@ -86,2 +86,2 @@ : path, [http2_1.constants.HTTP2_HEADER_METHOD]: method })); | ||
exports.NodeHttp2Handler = NodeHttp2Handler; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1odHRwMi1oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL25vZGUtaHR0cDItaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUErRDtBQUUvRCxzRUFBZ0U7QUFFaEUsMERBQWdGO0FBRWhGLDZEQUF3RDtBQUN4RCx1RUFBa0U7QUFvQmxFLE1BQWEsZ0JBQWdCO0lBSTNCLFlBQTZCLGVBQWlDLEVBQUU7UUFBbkMsaUJBQVksR0FBWixZQUFZLENBQXVCO1FBRmhELGFBQVEsR0FBRyxFQUFFLGVBQWUsRUFBRSxJQUFJLEVBQUUsQ0FBQztRQUduRCxJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksR0FBRyxFQUE4QixDQUFDO0lBQzlELENBQUM7SUFFRCxPQUFPO1FB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jtcbiAgICAgICAgICByZWplY3QoYWJvcnRFcnJvcik7XG4gICAgICAgIH07XG4gICAgICB9XG5cbiAgICAgIHdyaXRlUmVxdWVzdEJvZHkocmVxLCByZXF1ZXN0KTtcbiAgICB9KTtcbiAgfVxuXG4gIHByaXZhdGUgZ2V0U2Vzc2lvbihhdXRob3JpdHk6IHN0cmluZyk6IENsaWVudEh0dHAyU2Vzc2lvbiB7XG4gICAgY29uc3QgY29ubmVjdGlvblBvb2wgPSB0aGlzLmNvbm5lY3Rpb25Qb29sO1xuICAgIGNvbnN0IGV4aXN0aW5nU2Vzc2lvbiA9IGNvbm5lY3Rpb25Qb29sLmdldChhdXRob3JpdHkpO1xuICAgIGlmIChleGlzdGluZ1Nlc3Npb24pIHJldHVybiBleGlzdGluZ1Nlc3Npb247XG5cbiAgICBjb25zdCBuZXdTZXNzaW9uID0gY29ubmVjdChhdXRob3JpdHkpO1xuICAgIGNvbm5lY3Rpb25Qb29sLnNldChhdXRob3JpdHksIG5ld1Nlc3Npb24pO1xuXG4gICAgY29uc3QgeyBzZXNzaW9uVGltZW91dCB9ID0gdGhpcy5odHRwMk9wdGlvbnM7XG4gICAgaWYgKHNlc3Npb25UaW1lb3V0KSB7XG4gICAgICBuZXdTZXNzaW9uLnNldFRpbWVvdXQoc2Vzc2lvblRpbWVvdXQsICgpID0+IHtcbiAgICAgICAgbmV3U2Vzc2lvbi5jbG9zZSgpO1xuICAgICAgICBjb25uZWN0aW9uUG9vbC5kZWxldGUoYXV0aG9yaXR5KTtcbiAgICAgIH0pO1xuICAgIH1cbiAgICByZXR1cm4gbmV3U2Vzc2lvbjtcbiAgfVxufVxuIl19 |
@@ -6,6 +6,10 @@ # Change Log | ||
# [1.0.0-alpha.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/node-http-handler@0.1.0-preview.3...@aws-sdk/node-http-handler@1.0.0-alpha.8) (2020-02-18) | ||
# [1.0.0-alpha.9](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/node-http-handler@0.1.0-preview.3...@aws-sdk/node-http-handler@1.0.0-alpha.9) (2020-03-20) | ||
# 1.0.0-alpha.24 (2020-02-19) | ||
# 1.0.0-alpha.14 (2020-01-28) | ||
@@ -36,2 +40,73 @@ | ||
* support custom agent in node http handler ([#489](https://github.com/aws/aws-sdk-js-v3/issues/489)) ([9c6cde8](https://github.com/aws/aws-sdk-js-v3/commit/9c6cde855fce0eb012f64a305fcc38c0d16011b9)) | ||
* update updated types ([#474](https://github.com/aws/aws-sdk-js-v3/issues/474)) ([9efac3e](https://github.com/aws/aws-sdk-js-v3/commit/9efac3e1eb2370fb11b10b3d005369ec1a307e3a)) | ||
### Features | ||
* [WIP] Node.js HTTP/2 Handler in smithy-codegen ([#414](https://github.com/aws/aws-sdk-js-v3/issues/414)) ([1493cc3](https://github.com/aws/aws-sdk-js-v3/commit/1493cc33c584929f6357e0b442dd715172485657)) | ||
* add a middleware inserting right host header ([#567](https://github.com/aws/aws-sdk-js-v3/issues/567)) ([82649ae](https://github.com/aws/aws-sdk-js-v3/commit/82649ae7f2b0804cccc850dcdce1a239b73031e3)) | ||
* apply protocol and middleware update ([0de0a22](https://github.com/aws/aws-sdk-js-v3/commit/0de0a22c2a97a0dd3d27eee67e5e31fb32402a11)) | ||
# 0.6.0 (2019-10-30) | ||
# 0.3.0 (2019-09-09) | ||
### Features | ||
* commit all clients ([#324](https://github.com/aws/aws-sdk-js-v3/issues/324)) ([cb268ed](https://github.com/aws/aws-sdk-js-v3/commit/cb268ed45fd5580ef9633da78f13aaa6aa472805)) | ||
* node-http-handler set default keep-alive to true ([#307](https://github.com/aws/aws-sdk-js-v3/issues/307)) ([d709e50](https://github.com/aws/aws-sdk-js-v3/commit/d709e50cd2b4df5ffd532c4fc1159ef9a8bd1c4c)) | ||
# 0.2.0 (2019-07-12) | ||
### Features | ||
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10cb6b0ebc32004b797556bfc171c96bbf16)) | ||
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab4ac5343058eaf7d448a428d8c4b72c844)) | ||
# 0.1.0 (2019-04-19) | ||
# [1.0.0-alpha.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/node-http-handler@0.1.0-preview.3...@aws-sdk/node-http-handler@1.0.0-alpha.8) (2020-02-19) | ||
# 1.0.0-alpha.14 (2020-01-28) | ||
# 1.0.0-alpha.13 (2020-01-24) | ||
# 1.0.0-alpha.12 (2020-01-22) | ||
# 1.0.0-alpha.8 (2020-01-16) | ||
# 1.0.0-alpha.1 (2020-01-10) | ||
# 0.9.0 (2020-01-09) | ||
### Bug Fixes | ||
* support custom agent in node http handler ([#489](https://github.com/aws/aws-sdk-js-v3/issues/489)) ([9c6cde8](https://github.com/aws/aws-sdk-js-v3/commit/9c6cde8)) | ||
@@ -38,0 +113,0 @@ * update updated types ([#474](https://github.com/aws/aws-sdk-js-v3/issues/474)) ([9efac3e](https://github.com/aws/aws-sdk-js-v3/commit/9efac3e)) |
{ | ||
"name": "@aws-sdk/node-http-handler", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "Provides a way to make requests", | ||
@@ -19,6 +19,6 @@ "scripts": { | ||
"dependencies": { | ||
"@aws-sdk/abort-controller": "^1.0.0-alpha.5", | ||
"@aws-sdk/protocol-http": "^1.0.0-alpha.7", | ||
"@aws-sdk/querystring-builder": "^1.0.0-alpha.5", | ||
"@aws-sdk/types": "^1.0.0-alpha.5", | ||
"@aws-sdk/abort-controller": "^1.0.0-alpha.6", | ||
"@aws-sdk/protocol-http": "^1.0.0-alpha.8", | ||
"@aws-sdk/querystring-builder": "^1.0.0-alpha.6", | ||
"@aws-sdk/types": "^1.0.0-alpha.6", | ||
"tslib": "^1.8.0" | ||
@@ -30,3 +30,3 @@ }, | ||
"jest": "^24.7.1", | ||
"typescript": "~3.4.0" | ||
"typescript": "~3.8.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "jest": { |
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
75621