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

@tinyhttp/req

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/req - npm Package Compare versions

Comparing version 0.5.6 to 0.5.7

9

CHANGELOG.md
# @tinyhttp/req
## 0.5.7
### Patch Changes
- strip some bytes
- Updated dependencies [undefined]
- @tinyhttp/type-is@0.5.4
- @tinyhttp/url@0.5.4
## 0.5.6

@@ -4,0 +13,0 @@

5

dist/index.js

@@ -36,7 +36,6 @@ import parseRange from 'range-parser';

if ((status >= 200 && status < 300) || status === 304) {
const resHeaders = {
return fresh(req.headers, {
etag: getRequestHeader(req)('ETag'),
'last-modified': res.getHeader('Last-Modified'),
};
return fresh(req.headers, resHeaders);
});
}

@@ -43,0 +42,0 @@ return false;

6

package.json
{
"name": "@tinyhttp/req",
"version": "0.5.6",
"version": "0.5.7",
"type": "module",

@@ -42,4 +42,4 @@ "description": "request extensions for tinyhttp",

"@tinyhttp/accepts": "0.5.3",
"@tinyhttp/type-is": "0.5.3",
"@tinyhttp/url": "0.5.3",
"@tinyhttp/type-is": "0.5.4",
"@tinyhttp/url": "0.5.4",
"es-fresh": "^0.0.8",

@@ -46,0 +46,0 @@ "range-parser": "^1.2.1"

@@ -39,8 +39,6 @@ import { IncomingMessage as Request, ServerResponse as Response } from 'http'

if ((status >= 200 && status < 300) || status === 304) {
const resHeaders = {
return fresh(req.headers, {
etag: getRequestHeader(req)('ETag'),
'last-modified': res.getHeader('Last-Modified'),
}
return fresh(req.headers, resHeaders)
})
}

@@ -47,0 +45,0 @@

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