@aws-sdk/util-body-length-node
Advanced tools
Comparing version 3.170.0 to 3.183.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03) | ||
**Note:** Version bump only for package @aws-sdk/util-body-length-node | ||
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13) | ||
@@ -8,0 +16,0 @@ |
import { fstatSync, lstatSync } from "fs"; | ||
export var calculateBodyLength = function (body) { | ||
export const calculateBodyLength = (body) => { | ||
if (!body) { | ||
@@ -21,3 +21,3 @@ return 0; | ||
} | ||
throw new Error("Body Length computation failed for ".concat(body)); | ||
throw new Error(`Body Length computation failed for ${body}`); | ||
}; |
{ | ||
"name": "@aws-sdk/util-body-length-node", | ||
"description": "Determines the length of a request body in node.js", | ||
"version": "3.170.0", | ||
"version": "3.183.0", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", |
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
33875