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.1 to 2.0.2

7

dist/index.js

@@ -88,3 +88,3 @@ import { format, parse } from 'es-content-type';

res.end('');
return;
return res;
}

@@ -94,3 +94,3 @@ if (typeof body === 'object') {

res.end('');
return;
return res;
}

@@ -144,3 +144,4 @@ else if (Buffer.isBuffer(body)) {

cc += ',must-revalidate';
res.setHeader('Cache-Control', cc);
if (cc)
res.setHeader('Cache-Control', cc);
};

@@ -147,0 +148,0 @@ /**

/// <reference types="node" />
import { ServerResponse as S } from 'http';
declare type Res = Pick<S, 'statusCode'>;
import { ServerResponse } from 'http';
declare type Res = Pick<ServerResponse, 'statusCode'>;
/**

@@ -5,0 +5,0 @@ * Sets the HTTP status for the response. It is a chainable alias of Node’s `response.statusCode`.

{
"name": "@tinyhttp/send",
"version": "2.0.1",
"version": "2.0.2",
"type": "module",

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

"dependencies": {
"@tinyhttp/etag": "2.0.1",
"@tinyhttp/etag": "2.0.2",
"es-content-type": "^0.1.0",

@@ -33,0 +33,0 @@ "es-mime-types": "^0.1.3"

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