@aws-sdk/util-body-length-node
Advanced tools
Comparing version 0.1.0-preview.1 to 0.1.0-preview.2
@@ -9,3 +9,3 @@ "use strict"; | ||
if (typeof body === 'string') { | ||
return body.length; | ||
return Buffer.from(body).length; | ||
} | ||
@@ -12,0 +12,0 @@ else if (typeof body.byteLength === 'number') { |
{ | ||
"name": "@aws-sdk/util-body-length-node", | ||
"description": "Determines the length of a request body in node.js", | ||
"version": "0.1.0-preview.1", | ||
"version": "0.1.0-preview.2", | ||
"scripts": { | ||
@@ -26,4 +26,3 @@ "prepublishOnly": "tsc", | ||
"tslib": "^1.8.0" | ||
}, | ||
"gitHead": "960970c0c25938a8d51d1a243d3f21f05acea92e" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
14101