Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/fetch-http-handler

Package Overview
Dependencies
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/fetch-http-handler - npm Package Compare versions

Comparing version 1.0.0-alpha.4 to 1.0.0-alpha.5

8

build/fetch-http-handler.js

@@ -63,9 +63,9 @@ "use strict";

}
return response.blob().then(function (body) { return ({
return {
response: new protocol_http_1.HttpResponse({
headers: transformedHeaders,
statusCode: response.status,
body: body
body: response.body
})
}); });
};
}),

@@ -88,2 +88,2 @@ request_timeout_1.requestTimeout(requestTimeoutInMs)

exports.FetchHttpHandler = FetchHttpHandler;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmV0Y2gtaHR0cC1oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2ZldGNoLWh0dHAtaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx3REFBZ0Y7QUFDaEYscURBQW1EO0FBQ25ELG9FQUFnRTtBQWVoRTtJQUNFLDBCQUE2QixXQUFvQztRQUFwQyw0QkFBQSxFQUFBLGdCQUFvQztRQUFwQyxnQkFBVyxHQUFYLFdBQVcsQ0FBeUI7SUFBRyxDQUFDO0lBRXJFLGtDQUFPLEdBQVA7UUFDRSxrRUFBa0U7UUFDbEUsV0FBVztJQUNiLENBQUM7SUFFRCxpQ0FBTSxHQUFOLFVBQ0UsT0FBb0IsRUFDcEIsT0FBMkI7UUFFM0IsSUFBTSxXQUFXLEdBQUcsT0FBTyxJQUFJLE9BQU8sQ0FBQyxXQUFXLENBQUM7UUFDbkQsSUFBTSxrQkFBa0IsR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDLGNBQWMsQ0FBQztRQUUzRCwrREFBK0Q7UUFDL0QsS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UmVzcG9uc2Uoe1xuICAgICAgICAgICAgaGVhZGVyczogdHJhbnNmb3JtZWRIZWFkZXJzLFxuICAgICAgICAgICAgc3RhdHVzQ29kZTogcmVzcG9uc2Uuc3RhdHVzLFxuICAgICAgICAgICAgYm9keTogcmVzcG9uc2UuYm9keVxuICAgICAgICAgIH0pXG4gICAgICAgIH07XG4gICAgICB9KSxcbiAgICAgIHJlcXVlc3RUaW1lb3V0KHJlcXVlc3RUaW1lb3V0SW5NcylcbiAgICBdO1xuICAgIGlmIChhYm9ydFNpZ25hbCkge1xuICAgICAgcmFjZU9mUHJvbWlzZXMucHVzaChcbiAgICAgICAgbmV3IFByb21pc2U8bmV2ZXI+KChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgICAgICBhYm9ydFNpZ25hbC5vbmFib3J0ID0gKCkgPT4ge1xuICAgICAgICAgICAgY29uc3QgYWJvcnRFcnJvciA9IG5ldyBFcnJvcihcIlJlcXVlc3QgYWJvcnRlZFwiKTtcbiAgICAgICAgICAgIGFib3J0RXJyb3IubmFtZSA9IFwiQWJvcnRFcnJvclwiO1xuICAgICAgICAgICAgcmVqZWN0KGFib3J0RXJyb3IpO1xuICAgICAgICAgIH07XG4gICAgICAgIH0pXG4gICAgICApO1xuICAgIH1cbiAgICByZXR1cm4gUHJvbWlzZS5yYWNlKHJhY2VPZlByb21pc2VzKTtcbiAgfVxufVxuIl19

@@ -6,2 +6,66 @@ # Change Log

# [1.0.0-alpha.5](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/fetch-http-handler@0.1.0-preview.2...@aws-sdk/fetch-http-handler@1.0.0-alpha.5) (2020-01-22)
### Features
* add support for browser streaming ([#721](https://github.com/aws/aws-sdk-js-v3/issues/721)) ([133430c](https://github.com/aws/aws-sdk-js-v3/commit/133430c))
# 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))
### Features
* apply protocol and middleware update ([0de0a22](https://github.com/aws/aws-sdk-js-v3/commit/0de0a22))
# 0.7.0 (2019-11-19)
# 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/cb268ed))
# 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/8adc10c))
* 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/1e156ab))
# 0.1.0 (2019-04-19)
# [1.0.0-alpha.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/fetch-http-handler@0.1.0-preview.2...@aws-sdk/fetch-http-handler@1.0.0-alpha.4) (2020-01-16)

@@ -8,0 +72,0 @@

{
"name": "@aws-sdk/fetch-http-handler",
"version": "1.0.0-alpha.4",
"version": "1.0.0-alpha.5",
"description": "Provides a way to make requests",

@@ -18,9 +18,9 @@ "scripts": {

"dependencies": {
"@aws-sdk/protocol-http": "^1.0.0-alpha.4",
"@aws-sdk/querystring-builder": "^1.0.0-alpha.2",
"@aws-sdk/types": "^1.0.0-alpha.2",
"@aws-sdk/protocol-http": "^1.0.0-alpha.5",
"@aws-sdk/querystring-builder": "^1.0.0-alpha.3",
"@aws-sdk/types": "^1.0.0-alpha.3",
"tslib": "^1.8.0"
},
"devDependencies": {
"@aws-sdk/abort-controller": "^1.0.0-alpha.2",
"@aws-sdk/abort-controller": "^1.0.0-alpha.3",
"@types/jest": "^24.0.12",

@@ -27,0 +27,0 @@ "@types/node": "^10.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc