Comparing version 6.1.0 to 6.2.0
/** @type {Record<string, Record<string, string>>} */ | ||
export const data: Record<string, Record<string, string>> | ||
export const data: Record<string, Record<string, string>>; |
/** @type {Record<string, RegExp>} */ | ||
export const expressions: Record<string, RegExp> | ||
export const expressions: Record<string, RegExp>; |
@@ -14,3 +14,3 @@ // This file is generated by `build.js`. | ||
/[\u0900-\u0950\u0955-\u0963\u0966-\u097F\uA8E0-\uA8FF]|\uD806[\uDF00-\uDF09]/g, | ||
jpn: /[\u3041-\u3096\u309D-\u309F]|\uD82C[\uDC01-\uDD1F\uDD32\uDD50-\uDD52]|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00\uDD20-\uDD22\uDD55\uDD64-\uDD67]|[㐀-䶵一-龯]/g, | ||
jpn: /[\u3041-\u3096\u309D-\u309F]|\uD82C[\uDC01-\uDD1F\uDD32\uDD50-\uDD52]|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00\uDD20-\uDD22\uDD55\uDD64-\uDD67]|[\u3400-\u4DB5\u4E00-\u9FAF]/g, | ||
jav: /[\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE\uA9DF]/g, | ||
@@ -17,0 +17,0 @@ kor: /[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g, |
@@ -11,6 +11,3 @@ /** | ||
*/ | ||
export function franc( | ||
value?: string | undefined, | ||
options?: Options | undefined | ||
): string | ||
export function franc(value?: string | undefined, options?: Options | undefined): string; | ||
/** | ||
@@ -27,20 +24,17 @@ * Get a list of probable languages the given value is | ||
*/ | ||
export function francAll( | ||
value?: string | undefined, | ||
options?: Options | undefined | ||
): Array<import('trigram-utils').TrigramTuple> | ||
export type TrigramTuple = import('trigram-utils').TrigramTuple | ||
export function francAll(value?: string | undefined, options?: Options | undefined): Array<import("trigram-utils").TrigramTuple>; | ||
export type TrigramTuple = import('trigram-utils').TrigramTuple; | ||
export type Options = { | ||
/** | ||
* Languages to allow. | ||
*/ | ||
only?: string[] | undefined | ||
/** | ||
* Languages to ignore. | ||
*/ | ||
ignore?: string[] | undefined | ||
/** | ||
* Minimum length to accept. | ||
*/ | ||
minLength?: number | undefined | ||
} | ||
/** | ||
* Languages to allow. | ||
*/ | ||
only?: Array<string>; | ||
/** | ||
* Languages to ignore. | ||
*/ | ||
ignore?: Array<string>; | ||
/** | ||
* Minimum length to accept. | ||
*/ | ||
minLength?: number; | ||
}; |
@@ -16,7 +16,5 @@ // This file is generated by `build.js` | ||
import {asTuples} from 'trigram-utils' | ||
/* Load `expressions` (regular expressions matching | ||
* scripts). */ | ||
import {expressions} from './expressions.js' | ||
/* Load `data` (trigram information per language, | ||
@@ -23,0 +21,0 @@ * per script). */ |
{ | ||
"name": "franc-min", | ||
"threshold": 8000000, | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"description": "Detect the language of text", | ||
@@ -45,3 +45,10 @@ "license": "MIT", | ||
"scripts": {}, | ||
"xo": false, | ||
"xo": { | ||
"prettier": true, | ||
"rules": { | ||
"camelcase": "off", | ||
"max-depth": "off", | ||
"no-misleading-character-class": "off" | ||
} | ||
}, | ||
"typeCoverage": { | ||
@@ -48,0 +55,0 @@ "atLeast": 100, |
Sorry, the diff of this file is too big to display
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
126936
796