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

@types/accept-language-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/accept-language-parser - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

6

accept-language-parser/index.d.ts

@@ -19,4 +19,4 @@ // Type definitions for accept-language-parser 1.5

code: string;
script?: string | null;
region?: string;
script?: string | null | undefined;
region?: string | undefined;
quality: number;

@@ -26,3 +26,3 @@ }

export interface PickOptions {
loose?: boolean;
loose?: boolean | undefined;
}
{
"name": "@types/accept-language-parser",
"version": "1.5.1",
"version": "1.5.2",
"description": "TypeScript definitions for accept-language-parser",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accept-language-parser",
"license": "MIT",

@@ -19,11 +20,12 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/accept-language-parser"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "bece7d72b0d1cf9e44383e38092a5b880a2b54f2ca96779a4a7f79148febbb5d",
"typeScriptVersion": "2.1"
"typesPublisherContentHash": "0a62729e0805d2eede61b5a2136c84defb8145cf0050bfceb6e78db47d5d7c33",
"typeScriptVersion": "3.6"
}

@@ -8,6 +8,36 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accept-language-parser
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accept-language-parser.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accept-language-parser/index.d.ts)
````ts
// Type definitions for accept-language-parser 1.5
// Project: https://github.com/opentable/accept-language-parser
// Definitions by: Niklas Wulf <https://github.com/kampfgnom>
// Wooram Jun <https://github.com/chatoo2412>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
Additional Details
* Last updated: Thu, 24 Jan 2019 16:50:03 GMT
// https://github.com/opentable/accept-language-parser/blob/v1.5.0/index.js
export function parse(acceptLanguage: string): Language[];
export function pick<T extends string>(
supportedLanguages: T[],
acceptLanguage: string | Language[],
options?: PickOptions
): T | null;
export interface Language {
code: string;
script?: string | null | undefined;
region?: string | undefined;
quality: number;
}
export interface PickOptions {
loose?: boolean | undefined;
}
````
### Additional Details
* Last updated: Tue, 06 Jul 2021 18:05:29 GMT
* Dependencies: none

@@ -17,2 +47,2 @@ * Global values: none

# Credits
These definitions were written by Niklas Wulf <https://github.com/kampfgnom>, Wooram Jun <https://github.com/chatoo2412>.
These definitions were written by [Niklas Wulf](https://github.com/kampfgnom), and [Wooram Jun](https://github.com/chatoo2412).

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