@tinyhttp/req
Advanced tools
Comparing version 2.0.4 to 2.0.7
/// <reference types="node" /> | ||
import { IncomingMessage } from 'http'; | ||
declare type Request = Pick<IncomingMessage, 'headers'>; | ||
declare type AcceptReturns = string | false | string[]; | ||
declare type AcceptReturns = string | boolean | string[]; | ||
export declare const getAccepts: (req: Request) => (...types: string[]) => AcceptReturns; | ||
@@ -6,0 +6,0 @@ export declare const getAcceptsEncodings: (req: Request) => (...encodings: string[]) => AcceptReturns; |
{ | ||
"name": "@tinyhttp/req", | ||
"version": "2.0.4", | ||
"version": "2.0.7", | ||
"type": "module", | ||
@@ -29,11 +29,8 @@ "description": "request extensions for tinyhttp", | ||
"dependencies": { | ||
"@tinyhttp/accepts": "2.0.2", | ||
"@tinyhttp/accepts": "2.0.3", | ||
"@tinyhttp/type-is": "2.0.2", | ||
"@tinyhttp/url": "2.0.3", | ||
"es-fresh": "^0.0.10", | ||
"range-parser": "^1.2.1" | ||
"header-range-parser": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/range-parser": "^1.2.4" | ||
}, | ||
"scripts": { | ||
@@ -40,0 +37,0 @@ "build": "rollup -c ./rollup.config.js" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
5733
+ Addedheader-range-parser@^1.0.0
+ Added@tinyhttp/accepts@2.0.3(transitive)
+ Addedheader-range-parser@1.1.3(transitive)
- Removedrange-parser@^1.2.1
- Removed@tinyhttp/accepts@2.0.2(transitive)
- Removedrange-parser@1.2.1(transitive)
Updated@tinyhttp/accepts@2.0.3