@smithy/util-body-length-node
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -18,2 +18,5 @@ "use strict"; | ||
} | ||
else if (typeof body.start === "number" && typeof body.end === "number") { | ||
return body.end + 1 - body.start; | ||
} | ||
else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { | ||
@@ -20,0 +23,0 @@ return (0, fs_1.lstatSync)(body.path).size; |
@@ -15,2 +15,5 @@ import { fstatSync, lstatSync } from "fs"; | ||
} | ||
else if (typeof body.start === "number" && typeof body.end === "number") { | ||
return body.end + 1 - body.start; | ||
} | ||
else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { | ||
@@ -17,0 +20,0 @@ return lstatSync(body.path).size; |
{ | ||
"name": "@smithy/util-body-length-node", | ||
"description": "Determines the length of a request body in node.js", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", |
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
16086
75