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

@aws-sdk/middleware-content-length

Package Overview
Dependencies
Maintainers
4
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-content-length - npm Package Compare versions

Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8

9

build/index.js

@@ -9,3 +9,4 @@ "use strict";

return function (next) { return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
var _a, request, body, headers, length;
var request, body, headers, length;
var _a;
return tslib_1.__generator(this, function (_b) {

@@ -21,7 +22,7 @@ request = args.request;

if (length !== undefined) {
request.headers = tslib_1.__assign({}, request.headers, (_a = {}, _a[CONTENT_LENGTH_HEADER] = String(length), _a));
request.headers = tslib_1.__assign(tslib_1.__assign({}, request.headers), (_a = {}, _a[CONTENT_LENGTH_HEADER] = String(length), _a));
}
}
}
return [2 /*return*/, next(tslib_1.__assign({}, args, { request: request }))];
return [2 /*return*/, next(tslib_1.__assign(tslib_1.__assign({}, args), { request: request }))];
});

@@ -41,2 +42,2 @@ }); }; };

}); };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBVUEsd0RBQXFEO0FBRXJELElBQU0scUJBQXFCLEdBQUcsZ0JBQWdCLENBQUM7QUFFL0MsU0FBZ0IsdUJBQXVCLENBQ3JDLGlCQUF1QztJQUR6QyxpQkFnQ0M7SUE3QkMsT0FBTyxVQUNMLElBQStCLElBQ0QsT0FBQSxVQUM5QixJQUFnQzs7O1lBRTVCLE9BQU8sR0FBRyxJQUFJLENBQUMsT0FBTyxDQUFDO1lBQzNCLElBQUksMkJBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLE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WFkZXJzID0ge1xuICAgICAgICAgICAgLi4ucmVxdWVzdC5oZWFkZXJzLFxuICAgICAgICAgICAgW0NPTlRFTlRfTEVOR1RIX0hFQURFUl06IFN0cmluZyhsZW5ndGgpXG4gICAgICAgICAgfTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBuZXh0KHtcbiAgICAgIC4uLmFyZ3MsXG4gICAgICByZXF1ZXN0XG4gICAgfSk7XG4gIH07XG59XG5cbmV4cG9ydCBjb25zdCBjb250ZW50TGVuZ3RoTWlkZGxld2FyZU9wdGlvbnM6IEJ1aWxkSGFuZGxlck9wdGlvbnMgPSB7XG4gIHN0ZXA6IFwiYnVpbGRcIixcbiAgdGFnczogW1wiU0VUX0NPTlRFTlRfTEVOR1RIXCIsIFwiQ09OVEVOVF9MRU5HVEhcIl0sXG4gIG5hbWU6IFwiY29udGVudExlbmd0aE1pZGRsZXdhcmVcIlxufTtcblxuZXhwb3J0IGNvbnN0IGdldENvbnRlbnRMZW5ndGhQbHVnaW4gPSAob3B0aW9uczoge1xuICBib2R5TGVuZ3RoQ2hlY2tlcjogQm9keUxlbmd0aENhbGN1bGF0b3I7XG59KTogUGx1Z2dhYmxlPGFueSwgYW55PiA9PiAoe1xuICBhcHBseVRvU3RhY2s6IGNsaWVudFN0YWNrID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQoXG4gICAgICBjb250ZW50TGVuZ3RoTWlkZGxld2FyZShvcHRpb25zLmJvZHlMZW5ndGhDaGVja2VyKSxcbiAgICAgIGNvbnRlbnRMZW5ndGhNaWRkbGV3YXJlT3B0aW9uc1xuICAgICk7XG4gIH1cbn0pO1xuIl19

@@ -6,6 +6,10 @@ # Change Log

# [1.0.0-alpha.7](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-content-length@0.1.0-preview.2...@aws-sdk/middleware-content-length@1.0.0-alpha.7) (2020-02-18)
# [1.0.0-alpha.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-content-length@0.1.0-preview.2...@aws-sdk/middleware-content-length@1.0.0-alpha.8) (2020-03-20)
# 1.0.0-alpha.24 (2020-02-19)
# 1.0.0-alpha.13 (2020-01-24)

@@ -32,2 +36,69 @@

* **middleware-content-length:** header name ([5fb3936](https://github.com/aws/aws-sdk-js-v3/commit/5fb3936a7fdd016da7b99b63a2e5b06e89cb1b17))
* 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
* remove absolute priority numbers from middleware stack ([#434](https://github.com/aws/aws-sdk-js-v3/issues/434)) ([2ad5796](https://github.com/aws/aws-sdk-js-v3/commit/2ad579698f5679a0cb120daad38d539e2944abed))
* standardize plugins ([#422](https://github.com/aws/aws-sdk-js-v3/issues/422)) ([09112e5](https://github.com/aws/aws-sdk-js-v3/commit/09112e5a61dcb4a4c5ef5e544c1964545d30e046))
* update runtime plugin interface ([#400](https://github.com/aws/aws-sdk-js-v3/issues/400)) ([d75c620](https://github.com/aws/aws-sdk-js-v3/commit/d75c6203ea427057281826071a704647bb815900))
* use flag to replace httprequest instanceof ([b584032](https://github.com/aws/aws-sdk-js-v3/commit/b584032569de46e4f393ad9db6a2be331741af7b))
# 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))
# 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.7](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-content-length@0.1.0-preview.2...@aws-sdk/middleware-content-length@1.0.0-alpha.7) (2020-02-19)
# 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
* **middleware-content-length:** header name ([5fb3936](https://github.com/aws/aws-sdk-js-v3/commit/5fb3936))

@@ -34,0 +105,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/middleware-content-length",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"scripts": {

@@ -17,4 +17,4 @@ "prepublishOnly": "tsc",

"dependencies": {
"@aws-sdk/protocol-http": "^1.0.0-alpha.7",
"@aws-sdk/types": "^1.0.0-alpha.5",
"@aws-sdk/protocol-http": "^1.0.0-alpha.8",
"@aws-sdk/types": "^1.0.0-alpha.6",
"tslib": "^1.8.0"

@@ -25,4 +25,4 @@ },

"jest": "^24.7.1",
"typescript": "~3.4.0"
"typescript": "~3.8.3"
}
}
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