Socket
Socket
Sign inDemoInstall

@aws-sdk/util-body-length-browser

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-body-length-browser - npm Package Compare versions

Comparing version 3.183.0 to 3.186.0

8

CHANGELOG.md

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

# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
**Note:** Version bump only for package @aws-sdk/util-body-length-browser
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)

@@ -8,0 +16,0 @@

10

dist-es/calculateBodyLength.js

@@ -1,6 +0,6 @@

export const calculateBodyLength = (body) => {
export var calculateBodyLength = function (body) {
if (typeof body === "string") {
let len = body.length;
for (let i = len - 1; i >= 0; i--) {
const code = body.charCodeAt(i);
var len = body.length;
for (var i = len - 1; i >= 0; i--) {
var code = body.charCodeAt(i);
if (code > 0x7f && code <= 0x7ff)

@@ -21,3 +21,3 @@ len++;

}
throw new Error(`Body Length computation failed for ${body}`);
throw new Error("Body Length computation failed for ".concat(body));
};
{
"name": "@aws-sdk/util-body-length-browser",
"description": "Determines the length of a request body in browsers",
"version": "3.183.0",
"version": "3.186.0",
"scripts": {

@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

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