@fluent/langneg
Advanced tools
Comparing version 0.5.0 to 0.5.1
# Changelog | ||
## @fluent/langneg 0.5.1 (April 9, 2021) | ||
- Better TypeScript annotations. (#525) | ||
Make array arguments read-only, and expose options type. | ||
## @fluent/langneg 0.5.0 (July 2, 2020) | ||
@@ -4,0 +11,0 @@ |
@@ -1,2 +0,3 @@ | ||
export { negotiateLanguages } from "./negotiate_languages"; | ||
export { negotiateLanguages, NegotiateLanguagesOptions } from "./negotiate_languages"; | ||
export { acceptedLanguages } from "./accepted_languages"; | ||
export { filterMatches } from "./matches"; |
@@ -11,1 +11,2 @@ /* | ||
export { acceptedLanguages } from "./accepted_languages"; | ||
export { filterMatches } from "./matches"; |
@@ -1,2 +0,2 @@ | ||
interface NegotiateLanguagesOptions { | ||
export interface NegotiateLanguagesOptions { | ||
strategy?: "filtering" | "matching" | "lookup"; | ||
@@ -48,3 +48,2 @@ defaultLocale?: string; | ||
*/ | ||
export declare function negotiateLanguages(requestedLocales: Array<string>, availableLocales: Array<string>, { strategy, defaultLocale, }?: NegotiateLanguagesOptions): Array<string>; | ||
export {}; | ||
export declare function negotiateLanguages(requestedLocales: Readonly<Array<string>>, availableLocales: Readonly<Array<string>>, { strategy, defaultLocale, }?: NegotiateLanguagesOptions): Array<string>; |
@@ -1,2 +0,2 @@ | ||
/* @fluent/langneg@0.5.0 */ | ||
/* @fluent/langneg@0.5.1 */ | ||
(function (global, factory) { | ||
@@ -434,2 +434,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
exports.acceptedLanguages = acceptedLanguages; | ||
exports.filterMatches = filterMatches; | ||
exports.negotiateLanguages = negotiateLanguages; | ||
@@ -436,0 +437,0 @@ |
{ | ||
"name": "@fluent/langneg", | ||
"description": "Language Negotiation API for Fluent", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"homepage": "https://projectfluent.org", | ||
@@ -6,0 +6,0 @@ "author": "Mozilla <l10n-drivers@mozilla.org>", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
45007
1014
1