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

@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 2.0.6 to 2.0.7

3

dist/index.js

@@ -108,4 +108,5 @@ import { parse, format } from "es-content-type";

headers["Last-Modified"] = stats.mtime.toUTCString();
headers["Content-Type"] = contentType(extname(path));
headers["ETag"] = createETag(stats, encoding);
if (!res.getHeader("Content-Type"))
headers["Content-Type"] = contentType(extname(path));
let status2 = res.statusCode || 200;

@@ -112,0 +113,0 @@ if (req.headers["range"]) {

@@ -29,3 +29,3 @@ /// <reference types="node" />

declare type Req = Pick<I, 'headers'>;
declare type Res = Pick<S, 'setHeader' | 'statusCode' | 'writeHead'> & NodeJS.WritableStream;
declare type Res = Pick<S, 'setHeader' | 'statusCode' | 'writeHead' | 'getHeader'> & NodeJS.WritableStream;
export declare const enableCaching: (res: Res, caching: Caching) => void;

@@ -32,0 +32,0 @@ /**

{
"name": "@tinyhttp/send",
"version": "2.0.6",
"version": "2.0.7",
"type": "module",

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

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