Socket
Socket
Sign inDemoInstall

@tinyhttp/send

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/send - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

7

CHANGELOG.md
# @tinyhttp/send
## 1.0.8
### Patch Changes
- Fix minor sendFile and download bugs
## 1.0.7
### Patch Changes

@@ -5,0 +12,0 @@

5

dist/index.js

@@ -132,6 +132,5 @@ import { format, parse } from 'es-content-type';

throw new TypeError('path must be a string to res.sendFile');
if (headers) {
if (headers)
for (const [k, v] of Object.entries(headers))
res.setHeader(k, v);
}
if (!isAbsolute(path))

@@ -141,3 +140,3 @@ throw new TypeError('path must be absolute');

if (cb)
stream.on('error', (err) => void cb(err)).on('end', () => void cb());
stream.on('error', (err) => cb(err)).on('end', () => cb());
res.setHeader('Content-Type', contentType(extname(path)));

@@ -144,0 +143,0 @@ stream.pipe(res);

2

package.json
{
"name": "@tinyhttp/send",
"version": "1.0.7",
"version": "1.0.8",
"type": "module",

@@ -5,0 +5,0 @@ "description": "json, send, sendFile, status and sendStatus methods for tinyhttp",

Sorry, the diff of this file is not supported yet

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