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

@tinyhttp/accepts

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/accepts - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

20

dist/index.d.ts

@@ -13,4 +13,4 @@ /// <reference types="node" />

*/
types(types: string | string[], ...args: string[]): string | false | string[];
get type(): (types: string | string[], ...args: string[]) => string | false | string[];
types(types: string | string[], ...args: string[]): string[] | string | false;
get type(): (types: string | string[], ...args: string[]) => string[] | string | false;
/**

@@ -24,4 +24,4 @@ * Return accepted encodings or best fit based on `encodings`.

*/
encodings(encodings: string | string[], ...args: string[]): string | false | string[];
get encoding(): (encodings: string | string[], ...args: string[]) => string | false | string[];
encodings(encodings: string | string[], ...args: string[]): string | string[] | boolean;
get encoding(): (encodings: string | string[], ...args: string[]) => string | string[] | boolean;
/**

@@ -35,4 +35,4 @@ * Return accepted charsets or best fit based on `charsets`.

*/
charsets(charsets?: string | string[], ...args: string[]): string | false | string[];
get charset(): (charsets?: string | string[], ...args: string[]) => string | false | string[];
charsets(charsets?: string | string[], ...args: string[]): string | string[] | boolean;
get charset(): (charsets: string | string[], ...args: string[]) => string | string[] | boolean;
/**

@@ -47,6 +47,6 @@ * Return accepted languages or best fit based on `langs`.

*/
languages(languages: string | string[], ...args: string[]): string | false | string[];
get lang(): (languages: string | string[], ...args: string[]) => string | false | string[];
get langs(): (languages: string | string[], ...args: string[]) => string | false | string[];
get language(): (languages: string | string[], ...args: string[]) => string | false | string[];
languages(languages: string | string[], ...args: string[]): string | string[] | boolean;
get lang(): (languages: string | string[], ...args: string[]) => string | string[] | boolean;
get langs(): (languages: string | string[], ...args: string[]) => string | string[] | boolean;
get language(): (languages: string | string[], ...args: string[]) => string | string[] | boolean;
}
{
"name": "@tinyhttp/accepts",
"description": "accepts rewrite in TypeScript with ESM and CommonJS targets",
"version": "2.0.2",
"version": "2.0.3",
"homepage": "https://tinyhttp.v1rtl.site",

@@ -6,0 +6,0 @@ "funding": {

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