@bodar/totallylazy
Advanced tools
Comparing version 0.446.289 to 0.447.290
{ | ||
"name": "@bodar/totallylazy", | ||
"version": "0.446.289", | ||
"version": "0.447.290", | ||
"description": "Totallylazy", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:bodar/totallylazy.js.git", |
@@ -121,4 +121,4 @@ import { NamedMatch, NamedRegExp } from "./characters"; | ||
export declare function numberParser(decimalSeparator: AllowedDecimalSeparators, locale: Locale): Parser<number>; | ||
export declare function inferDecimalSeparator(locale: string): AllowedDecimalSeparators; | ||
export declare const inferDecimalSeparator: (locale: string) => AllowedDecimalSeparators; | ||
export declare function numberOf(value: string): number; | ||
//# sourceMappingURL=parsing.d.ts.map |
@@ -352,9 +352,6 @@ "use strict"; | ||
return new NumberParser(ignore => decimalSeparatorOrLocale, locale); | ||
return numberParser(inferDecimalSeparator(decimalSeparatorOrLocale), decimalSeparatorOrLocale); | ||
return numberParser(exports.inferDecimalSeparator(decimalSeparatorOrLocale), decimalSeparatorOrLocale); | ||
} | ||
exports.numberParser = numberParser; | ||
function inferDecimalSeparator(locale) { | ||
return functions_1.get(() => decimalSeparator(new Intl.NumberFormat(locale).formatToParts(.1).find(e => e.type === 'decimal').value), '.'); | ||
} | ||
exports.inferDecimalSeparator = inferDecimalSeparator; | ||
exports.inferDecimalSeparator = cache_1.caching((locale) => functions_1.get(() => decimalSeparator(new Intl.NumberFormat(locale).formatToParts(.1).find(e => e.type === 'decimal').value), '.')); | ||
function numberOf(value) { | ||
@@ -361,0 +358,0 @@ if (!value || value.trim().length === 0) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
445487
6501