Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smithy/util-body-length-node

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/util-body-length-node - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

3

dist-cjs/calculateBodyLength.js

@@ -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;

2

package.json
{
"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'",

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