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 0.1.0-preview.3 to 0.1.0-preview.4

build/index.js.map

2

build/index.d.ts

@@ -1,2 +0,2 @@

import { BuildMiddleware, BodyLengthCalculator } from '@aws-sdk/types';
import { BuildMiddleware, BodyLengthCalculator } from "@aws-sdk/types";
export declare function contentLengthMiddleware(bodyLengthCalculator: BodyLengthCalculator): BuildMiddleware<any, any, any>;

@@ -14,6 +14,6 @@ "use strict";

.map(function (str) { return str.toLowerCase(); })
.indexOf('content-length') === -1) {
.indexOf("content-length") === -1) {
length = bodyLengthCalculator(body);
if (length !== undefined) {
request.headers = tslib_1.__assign({}, request.headers, { 'Content-Length': String(length) });
request.headers = tslib_1.__assign({}, request.headers, { "Content-Length": String(length) });
}

@@ -26,2 +26,2 @@ }

exports.contentLengthMiddleware = contentLengthMiddleware;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBUUEsU0FBZ0IsdUJBQXVCLENBQ25DLG9CQUEwQztJQUQ5QyxpQkE4QkM7SUEzQkcsT0FBTyxVQUNILElBQW9DLElBQ0gsT0FBQSxVQUNqQyxJQUFxQzs7O1lBRWpDLE9BQU8sd0JBQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQ3pCLElBQUksR0FBYSxPQUFPLEtBQXBCLEVBQUUsT0FBTyxHQUFJLE9BQU8sUUFBWCxDQUFZO1lBQ2hDLElBQ0ksSUFBSTtnQkFDSixNQUFNLENBQUMsSUF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W55LCBPdXRwdXQsIGFueT5cbiAgICApOiBCdWlsZEhhbmRsZXI8YW55LCBPdXRwdXQsIGFueT4gPT4gYXN5bmMgKFxuICAgICAgICBhcmdzOiBCdWlsZEhhbmRsZXJBcmd1bWVudHM8YW55LCBhbnk+XG4gICAgKTogUHJvbWlzZTxPdXRwdXQ+ID0+IHtcbiAgICAgICAgbGV0IHJlcXVlc3QgPSB7Li4uYXJncy5yZXF1ZXN0fTtcbiAgICAgICAgY29uc3Qge2JvZHksIGhlYWRlcnN9ID0gcmVxdWVzdDtcbiAgICAgICAgaWYgKFxuICAgICAgICAgICAgYm9keSAmJlxuICAgICAgICAgICAgT2JqZWN0LmtleXMoaGVhZGVycylcbiAgICAgICAgICAgICAgICAubWFwKHN0ciA9PiBzdHIudG9Mb3dlckNhc2UoKSlcbiAgICAgICAgICAgICAgICAuaW5kZXhPZignY29udGVudC1sZW5ndGgnKSA9PT0gLTFcbiAgICAgICAgKSB7XG4gICAgICAgICAgICBjb25zdCBsZW5ndGggPSBib2R5TGVuZ3RoQ2FsY3VsYXRvcihib2R5KTtcbiAgICAgICAgICAgIGlmIChsZW5ndGggIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIHJlcXVlc3QuaGVhZGVycyA9IHtcbiAgICAgICAgICAgICAgICAgICAgLi4ucmVxdWVzdC5oZWFkZXJzLFxuICAgICAgICAgICAgICAgICAgICAnQ29udGVudC1MZW5ndGgnOiBTdHJpbmcobGVuZ3RoKSxcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbmV4dCh7XG4gICAgICAgICAgICAuLi5hcmdzLFxuICAgICAgICAgICAgcmVxdWVzdFxuICAgICAgICB9KTtcbiAgICB9XG59XG4iXX0=
//# sourceMappingURL=index.js.map

@@ -6,12 +6,24 @@ # Change Log

# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-content-length@0.1.0-preview.2...@aws-sdk/middleware-content-length@0.1.0-preview.3) (2019-04-19)
# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-content-length@0.1.0-preview.2...@aws-sdk/middleware-content-length@0.1.0-preview.4) (2019-07-12)
**Note:** Version bump only for package @aws-sdk/middleware-content-length
### 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)
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-content-length@0.1.0-preview.2...@aws-sdk/middleware-content-length@0.1.0-preview.3) (2019-04-19)
**Note:** Version bump only for package @aws-sdk/middleware-content-length
# [0.1.0-preview.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-content-length@0.1.0-preview.1...@aws-sdk/middleware-content-length@0.1.0-preview.2) (2019-03-27)
**Note:** Version bump only for package @aws-sdk/middleware-content-length
{
"name": "@aws-sdk/middleware-content-length",
"version": "0.1.0-preview.3",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "aws-sdk-js@amazon.com",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/types": "^0.1.0-preview.3",
"tslib": "^1.8.0"
},
"devDependencies": {
"@types/jest": "^20.0.2",
"jest": "^20.0.4",
"typescript": "^3.0.0"
}
"name": "@aws-sdk/middleware-content-length",
"version": "0.1.0-preview.4",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/types": "^0.1.0-preview.4",
"tslib": "^1.8.0"
},
"devDependencies": {
"@types/jest": "^24.0.12",
"jest": "^24.7.1",
"typescript": "~3.4.0"
}
}

@@ -1,1 +0,4 @@

# middleware-content-length
# @aws-sdk/middleware-content-length
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-content-length/preview.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-content-length)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-content-length.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-content-length)
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"rootDir": "./src",
"outDir": "./build",
"importHelpers": true,
"noEmitHelpers": true
}
}
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"rootDir": "./src",
"outDir": "./build",
"importHelpers": true,
"noEmitHelpers": true
}
}
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