@phensley/language-tag
Advanced tools
Comparing version 1.4.1 to 1.5.0
export { LanguageTag, LanguageTagField } from './languagetag'; | ||
export { parseLanguageTag } from './parser'; | ||
export { substituteRegionAliases } from './util'; | ||
export { substituteRegionAliases, FastTag } from './util'; |
@@ -181,3 +181,3 @@ import { __assign } from "tslib"; | ||
if (subs.length > 0) { | ||
this.privateUse += "" + prefix + SEP + subs.join(SEP); | ||
this.privateUse += "".concat(prefix).concat(SEP).concat(subs.join(SEP)); | ||
parsed = true; | ||
@@ -184,0 +184,0 @@ } |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type FastTag = (string | number)[]; | ||
@@ -2,0 +5,0 @@ export declare type FastTagPair = { |
export { LanguageTag, LanguageTagField } from './languagetag'; | ||
export { parseLanguageTag } from './parser'; | ||
export { substituteRegionAliases } from './util'; | ||
export { substituteRegionAliases, FastTag } from './util'; |
@@ -37,3 +37,3 @@ "use strict"; | ||
var init = function () { | ||
GRANDFATHERED_TAGS = tslib_1.__assign(tslib_1.__assign({}, util_1.stringToObject(subtags.grandfatheredRaw, '|', ':')), { | ||
GRANDFATHERED_TAGS = tslib_1.__assign(tslib_1.__assign({}, (0, util_1.stringToObject)(subtags.grandfatheredRaw, '|', ':')), { | ||
// Additional fallbacks from ICU | ||
@@ -91,3 +91,3 @@ 'cel-gaulish': 'xtg-x-cel-gaulish', 'en-GB-oed': 'en-GB-x-oed', 'i-default': 'en-x-i-default', 'i-enochian': 'und-x-i-enochian', 'i-mingo': 'see-x-i-mingo', 'zh-min': 'nan-x-zh-min' }); | ||
for (var i = 0; i < this.extlangs.length; i++) { | ||
var replacement = util_1.replaceRegion(this.extlangs[i].toUpperCase()); | ||
var replacement = (0, util_1.replaceRegion)(this.extlangs[i].toUpperCase()); | ||
if (replacement) { | ||
@@ -186,3 +186,3 @@ this.region = replacement; | ||
if (subs.length > 0) { | ||
this.privateUse += "" + prefix + SEP + subs.join(SEP); | ||
this.privateUse += "".concat(prefix).concat(SEP).concat(subs.join(SEP)); | ||
parsed = true; | ||
@@ -189,0 +189,0 @@ } |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type FastTag = (string | number)[]; | ||
@@ -2,0 +5,0 @@ export declare type FastTagPair = { |
{ | ||
"name": "@phensley/language-tag", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Parsing and construction of BCP 47 language tags", | ||
@@ -42,18 +42,18 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.18.5", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^16.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.29.1", | ||
"@typescript-eslint/parser": "^4.29.1", | ||
"@microsoft/api-extractor": "~7.18.5", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^17.0.23", | ||
"@typescript-eslint/eslint-plugin": "^5.19.0", | ||
"@typescript-eslint/parser": "^5.19.0", | ||
"beautify-benchmark": "^0.2.4", | ||
"benchmark": "^2.1.4", | ||
"chalk": "^4.1.2", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2", | ||
"chalk": "^5.0.1", | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"jest": "^27.5.1", | ||
"prettier": "^2.6.2", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^27.0.4", | ||
"typescript": "~4.3.5" | ||
"ts-jest": "^27.1.4", | ||
"typescript": "~4.6.3" | ||
}, | ||
@@ -73,3 +73,3 @@ "jest": { | ||
}, | ||
"gitHead": "a76ab6b597cc7f56f26d0632100b3f378f3e4e1c" | ||
"gitHead": "44c782abcf427752159541ea330cfb19db529c0a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
135005
1243