@oliasoft-open-source/units 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,4 +2,6 @@ import { label, showAltUnitsList, getAltUnitsListByQuantity, checkAndCleanDecima
2
2
  import { ALT_UNITS, LABELS, UNIT_FROM_KEY, KNOWN_CONVERSIONS, DEPRECATED_UNITS, UNIT_ALIASES, INTERMEDIATE_CONVERSIONS, KNOWN_UNITS, QUANTITIES_DESCRIPTION, UNITS_DESCRIPTION } from './constants';
3
3
  import { isNumeric, isNonNumerical, isEmptyValueWithUnit, allNumbers, formatNumber, charCount, getNumberOfDigitsToShow, fraction, asFraction, numFraction, cleanNumStr, cleanNum, toNum } from './utils';
4
4
  import { round } from './rounding/rounding';
5
- export { label, showAltUnitsList, getAltUnitsListByQuantity, getUnitsForQuantity, getQuantities, checkAndCleanDecimalComma, unitFromKey, unitFromQuantity, to, split, unum, toBase, altUnitsList, convertTable, roundNumberWithLabel, withUnit, unumWithUnit, validateAndClean, isValueWithUnit, getValue, getUnit, convertSamePrecision, convertAndGetValue, withPrettyUnitLabel, isNumeric, isNonNumerical, isEmptyValueWithUnit, allNumbers, formatNumber, charCount, getNumberOfDigitsToShow, fraction, asFraction, numFraction, cleanNumStr, cleanNum, toNum, round, ALT_UNITS, LABELS, UNIT_FROM_KEY, KNOWN_CONVERSIONS, DEPRECATED_UNITS, UNIT_ALIASES, INTERMEDIATE_CONVERSIONS, KNOWN_UNITS, QUANTITIES_DESCRIPTION, UNITS_DESCRIPTION };
5
+ import { convertNumberToLocale, convertArrayToLocale, convertNumberFromLocale, convertArrayFromLocale } from './internationalization/internationalization';
6
+ import { isLocaleSupported, getLocaleFormat, getLocaleFormatFromString, convertStringToNumber } from './internationalization/utils';
7
+ export { label, showAltUnitsList, getAltUnitsListByQuantity, getUnitsForQuantity, getQuantities, checkAndCleanDecimalComma, unitFromKey, unitFromQuantity, to, split, unum, toBase, altUnitsList, convertTable, roundNumberWithLabel, withUnit, unumWithUnit, validateAndClean, isValueWithUnit, getValue, getUnit, convertSamePrecision, convertAndGetValue, withPrettyUnitLabel, round, convertNumberToLocale, convertArrayToLocale, convertNumberFromLocale, convertArrayFromLocale, isNumeric, isNonNumerical, isEmptyValueWithUnit, allNumbers, formatNumber, charCount, getNumberOfDigitsToShow, fraction, asFraction, numFraction, cleanNumStr, cleanNum, toNum, isLocaleSupported, getLocaleFormat, getLocaleFormatFromString, convertStringToNumber, ALT_UNITS, LABELS, UNIT_FROM_KEY, KNOWN_CONVERSIONS, DEPRECATED_UNITS, UNIT_ALIASES, INTERMEDIATE_CONVERSIONS, KNOWN_UNITS, QUANTITIES_DESCRIPTION, UNITS_DESCRIPTION };
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UNITS_DESCRIPTION = exports.QUANTITIES_DESCRIPTION = exports.KNOWN_UNITS = exports.INTERMEDIATE_CONVERSIONS = exports.UNIT_ALIASES = exports.DEPRECATED_UNITS = exports.KNOWN_CONVERSIONS = exports.UNIT_FROM_KEY = exports.LABELS = exports.ALT_UNITS = exports.round = exports.toNum = exports.cleanNum = exports.cleanNumStr = exports.numFraction = exports.asFraction = exports.fraction = exports.getNumberOfDigitsToShow = exports.charCount = exports.formatNumber = exports.allNumbers = exports.isEmptyValueWithUnit = exports.isNonNumerical = exports.isNumeric = exports.withPrettyUnitLabel = exports.convertAndGetValue = exports.convertSamePrecision = exports.getUnit = exports.getValue = exports.isValueWithUnit = exports.validateAndClean = exports.unumWithUnit = exports.withUnit = exports.roundNumberWithLabel = exports.convertTable = exports.altUnitsList = exports.toBase = exports.unum = exports.split = exports.to = exports.unitFromQuantity = exports.unitFromKey = exports.checkAndCleanDecimalComma = exports.getQuantities = exports.getUnitsForQuantity = exports.getAltUnitsListByQuantity = exports.showAltUnitsList = exports.label = void 0;
3
+ exports.KNOWN_CONVERSIONS = exports.UNIT_FROM_KEY = exports.LABELS = exports.ALT_UNITS = exports.convertStringToNumber = exports.getLocaleFormatFromString = exports.getLocaleFormat = exports.isLocaleSupported = exports.toNum = exports.cleanNum = exports.cleanNumStr = exports.numFraction = exports.asFraction = exports.fraction = exports.getNumberOfDigitsToShow = exports.charCount = exports.formatNumber = exports.allNumbers = exports.isEmptyValueWithUnit = exports.isNonNumerical = exports.isNumeric = exports.convertArrayFromLocale = exports.convertNumberFromLocale = exports.convertArrayToLocale = exports.convertNumberToLocale = exports.round = exports.withPrettyUnitLabel = exports.convertAndGetValue = exports.convertSamePrecision = exports.getUnit = exports.getValue = exports.isValueWithUnit = exports.validateAndClean = exports.unumWithUnit = exports.withUnit = exports.roundNumberWithLabel = exports.convertTable = exports.altUnitsList = exports.toBase = exports.unum = exports.split = exports.to = exports.unitFromQuantity = exports.unitFromKey = exports.checkAndCleanDecimalComma = exports.getQuantities = exports.getUnitsForQuantity = exports.getAltUnitsListByQuantity = exports.showAltUnitsList = exports.label = void 0;
4
+ exports.UNITS_DESCRIPTION = exports.QUANTITIES_DESCRIPTION = exports.KNOWN_UNITS = exports.INTERMEDIATE_CONVERSIONS = exports.UNIT_ALIASES = exports.DEPRECATED_UNITS = void 0;
4
5
  const units_1 = require("./units");
5
6
  Object.defineProperty(exports, "label", { enumerable: true, get: function () { return units_1.label; } });
6
7
  Object.defineProperty(exports, "showAltUnitsList", { enumerable: true, get: function () { return units_1.showAltUnitsList; } });
@@ -53,4 +54,14 @@ Object.defineProperty(exports, "cleanNum", { enumerable: true, get: function ()
53
54
  Object.defineProperty(exports, "toNum", { enumerable: true, get: function () { return utils_1.toNum; } });
54
55
  const rounding_1 = require("./rounding/rounding");
55
56
  Object.defineProperty(exports, "round", { enumerable: true, get: function () { return rounding_1.round; } });
57
+ const internationalization_1 = require("./internationalization/internationalization");
58
+ Object.defineProperty(exports, "convertNumberToLocale", { enumerable: true, get: function () { return internationalization_1.convertNumberToLocale; } });
59
+ Object.defineProperty(exports, "convertArrayToLocale", { enumerable: true, get: function () { return internationalization_1.convertArrayToLocale; } });
60
+ Object.defineProperty(exports, "convertNumberFromLocale", { enumerable: true, get: function () { return internationalization_1.convertNumberFromLocale; } });
61
+ Object.defineProperty(exports, "convertArrayFromLocale", { enumerable: true, get: function () { return internationalization_1.convertArrayFromLocale; } });
62
+ const utils_2 = require("./internationalization/utils");
63
+ Object.defineProperty(exports, "isLocaleSupported", { enumerable: true, get: function () { return utils_2.isLocaleSupported; } });
64
+ Object.defineProperty(exports, "getLocaleFormat", { enumerable: true, get: function () { return utils_2.getLocaleFormat; } });
65
+ Object.defineProperty(exports, "getLocaleFormatFromString", { enumerable: true, get: function () { return utils_2.getLocaleFormatFromString; } });
66
+ Object.defineProperty(exports, "convertStringToNumber", { enumerable: true, get: function () { return utils_2.convertStringToNumber; } });
56
67
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,mCAyBiB;AAqCf,sFA7DA,aAAK,OA6DA;AACL,iGA7DA,wBAAgB,OA6DA;AAChB,0GA7DA,iCAAyB,OA6DA;AAGzB,0GA/DA,iCAAyB,OA+DA;AACzB,4FA/DA,mBAAW,OA+DA;AAEX,mFAhEA,UAAE,OAgEA;AACF,sFAhEA,aAAK,OAgEA;AACL,qFAhEA,YAAI,OAgEA;AACJ,uFAhEA,cAAM,OAgEA;AACN,6FAhEA,oBAAY,OAgEA;AACZ,6FAhEA,oBAAY,OAgEA;AACZ,qGAhEA,4BAAoB,OAgEA;AACpB,yFAhEA,gBAAQ,OAgEA;AACR,6FAhEA,oBAAY,OAgEA;AACZ,iGAhEA,wBAAgB,OAgEA;AAChB,gGAhEA,uBAAe,OAgEA;AACf,yFAhEA,gBAAQ,OAgEA;AACR,wFAhEA,eAAO,OAgEA;AACP,qGAhEA,4BAAoB,OAgEA;AACpB,mGAhEA,0BAAk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,OA0CA;AACpB,wGA1CA,8CAAuB,OA0CA;AACvB,uGA1CA,6CAAsB,OA0CA;AAvCxB,wDAKsC;AAiDpC,kGArDA,yBAAiB,OAqDA;AACjB,gGArDA,uBAAe,OAqDA;AACf,0GArDA,iCAAyB,OAqDA;AACzB,sGArDA,6BAAqB,OAqDA"}
@@ -2,3 +2,8 @@ export interface AltUnitWithLabel {
2
2
  unit: never;
3
3
  label: string | undefined;
4
4
  }
5
+ export interface LocaleFormat {
6
+ thousands: string;
7
+ decimal: string;
8
+ useGrouping: boolean;
9
+ }
@@ -0,0 +1,4 @@
1
+ export declare function convertNumberToLocale(number: number, countryCode?: string): string;
2
+ export declare function convertArrayToLocale(numbers: Array<number>, countryCode?: string): Array<string>;
3
+ export declare function convertNumberFromLocale(number: string, countryCode?: string): number | string;
4
+ export declare function convertArrayFromLocale(numbers: Array<string>, countryCode?: string): Array<number | string>;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertArrayFromLocale = exports.convertNumberFromLocale = exports.convertArrayToLocale = exports.convertNumberToLocale = void 0;
4
+ const utils_1 = require("./utils");
5
+ const options = { maximumFractionDigits: 20 };
6
+ function convertNumberToLocale(number, countryCode) {
7
+ let numberFormat;
8
+ try {
9
+ if (countryCode) {
10
+ numberFormat = new Intl.NumberFormat(countryCode, options);
11
+ }
12
+ else {
13
+ numberFormat = new Intl.NumberFormat(undefined, options);
14
+ }
15
+ }
16
+ catch (_a) {
17
+ numberFormat = new Intl.NumberFormat(undefined, options);
18
+ }
19
+ return numberFormat.format(number);
20
+ }
21
+ exports.convertNumberToLocale = convertNumberToLocale;
22
+ function convertArrayToLocale(numbers, countryCode) {
23
+ let numberFormat;
24
+ try {
25
+ if (countryCode) {
26
+ numberFormat = new Intl.NumberFormat(countryCode, options);
27
+ }
28
+ else {
29
+ numberFormat = new Intl.NumberFormat(undefined, options);
30
+ }
31
+ }
32
+ catch (_a) {
33
+ numberFormat = new Intl.NumberFormat(undefined, options);
34
+ }
35
+ return numbers.map(numberFormat.format);
36
+ }
37
+ exports.convertArrayToLocale = convertArrayToLocale;
38
+ function convertNumberFromLocale(number, countryCode) {
39
+ let localeFormat;
40
+ if (countryCode) {
41
+ localeFormat = (0, utils_1.getLocaleFormat)(countryCode);
42
+ }
43
+ else {
44
+ localeFormat = (0, utils_1.getLocaleFormatFromString)(number);
45
+ }
46
+ return (0, utils_1.convertStringToNumber)(number, localeFormat);
47
+ }
48
+ exports.convertNumberFromLocale = convertNumberFromLocale;
49
+ function convertArrayFromLocale(numbers, countryCode) {
50
+ let localeFormat;
51
+ if (countryCode) {
52
+ localeFormat = (0, utils_1.getLocaleFormat)(countryCode);
53
+ }
54
+ else {
55
+ let index = numbers === null || numbers === void 0 ? void 0 : numbers.findIndex(n => n.includes(',') || n.includes('.'));
56
+ if (index < 0) {
57
+ index = 0;
58
+ }
59
+ localeFormat = (0, utils_1.getLocaleFormatFromString)(numbers[index]);
60
+ }
61
+ return numbers.map(n => (0, utils_1.convertStringToNumber)(n, localeFormat));
62
+ }
63
+ exports.convertArrayFromLocale = convertArrayFromLocale;
64
+ //# sourceMappingURL=internationalization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internationalization.js","sourceRoot":"","sources":["../../src/internationalization/internationalization.ts"],"names":[],"mappings":";;;AACA,mCAA2F;AAI3F,MAAM,OAAO,GAAG,EAAC,qBAAqB,EAAE,EAAE,EAAC,CAAC;AAQ5C,SAAgB,qBAAqB,CAAC,MAAc,EAAE,WAAoB;IACxE,IAAI,YAAY,CAAC;IACjB,IAAI;QACF,IAAI,WAAW,EAAE;YACf,YAAY,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;SAC5D;aAAM;YACL,YAAY,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;SAC1D;KACF;IAAC,WAAM;QACN,YAAY,GAAG,IAAI,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CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;QACxE,IAAI,KAAK,GAAG,CAAC,EAAE;YAAE,KAAK,GAAG,CAAC,CAAC;SAAE;QAC7B,YAAY,GAAG,IAAA,iCAAyB,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;KAC1D;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,6BAAqB,EAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;AAClE,CAAC;AAVD,wDAUC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const index_1 = require("../index");
4
+ const { NumberFormat } = Intl;
5
+ jest.spyOn(Intl, 'NumberFormat')
6
+ .mockImplementation((locale = 'no', options) => new NumberFormat(locale, options));
7
+ describe('Internationalization', () => {
8
+ it('should convert machine numbers to locale numbers with a given country code (US)', () => {
9
+ const machineNumbers = [123456.789, 987654, 0.123456];
10
+ const localeNumbersUS = ['123,456.789', '987,654', '0.123456'];
11
+ const fallbackLocale = ['123\xa0456,789', '987\xa0654', '0,123456'];
12
+ expect((0, index_1.convertNumberToLocale)(123456, 'en')).toEqual('123,456');
13
+ expect((0, index_1.convertNumberToLocale)(0.156, 'en')).toEqual('0.156');
14
+ expect((0, index_1.convertNumberToLocale)(123456.789, 'en')).toEqual('123,456.789');
15
+ expect((0, index_1.convertNumberToLocale)(0.123456789, 'en')).toEqual('0.123456789');
16
+ expect((0, index_1.convertArrayToLocale)(machineNumbers, 'en')).toEqual(localeNumbersUS);
17
+ expect((0, index_1.convertNumberToLocale)(123456.789, 'fail')).toEqual('123\xa0456,789');
18
+ expect((0, index_1.convertArrayToLocale)(machineNumbers, 'fail')).toEqual(fallbackLocale);
19
+ });
20
+ it('should convert machine numbers to locale numbers with default browser settings (norwegian)', () => {
21
+ const machineNumbers = [123456.789, 987654, 0.123456];
22
+ const localeNumbers = ['123\xa0456,789', '987\xa0654', '0,123456'];
23
+ expect((0, index_1.convertNumberToLocale)(123456)).toEqual('123\xa0456');
24
+ expect((0, index_1.convertNumberToLocale)(0.156)).toEqual('0,156');
25
+ expect((0, index_1.convertNumberToLocale)(123456.789)).toEqual('123\xa0456,789');
26
+ expect((0, index_1.convertNumberToLocale)(0.123456789)).toEqual('0,123456789');
27
+ expect((0, index_1.convertArrayToLocale)(machineNumbers)).toEqual(localeNumbers);
28
+ });
29
+ it('should convert locale numbers to machine numbers with a given country code (US)', () => {
30
+ const localeNumbers = ['123,456.789', '987,654.321', '-0.12345'];
31
+ const machineNumbers = [123456.789, 987654.321, -0.12345];
32
+ expect((0, index_1.convertNumberFromLocale)('123,456', 'en')).toEqual(123456);
33
+ expect((0, index_1.convertNumberFromLocale)('0.156', 'en')).toEqual(0.156);
34
+ expect((0, index_1.convertNumberFromLocale)('123,456.789', 'en')).toEqual(123456.789);
35
+ expect((0, index_1.convertNumberFromLocale)('0.123456789', 'en')).toEqual(0.123456789);
36
+ expect((0, index_1.convertArrayFromLocale)(localeNumbers, 'en')).toEqual(machineNumbers);
37
+ });
38
+ it('should convert locale numbers to machine numbers with default browser settings (norwegian)', () => {
39
+ const localeNumbers = ['123 456,789', '987 654,321', '0,12345'];
40
+ const machineNumbers = [123456.789, 987654.321, 0.12345];
41
+ expect((0, index_1.convertNumberFromLocale)('123 456')).toEqual(123456);
42
+ expect((0, index_1.convertNumberFromLocale)('0.156')).toEqual(0.156);
43
+ expect((0, index_1.convertNumberFromLocale)('123,456.789')).toEqual(123456.789);
44
+ expect((0, index_1.convertNumberFromLocale)('0.123456789')).toEqual(0.123456789);
45
+ expect((0, index_1.convertArrayFromLocale)(localeNumbers)).toEqual(machineNumbers);
46
+ });
47
+ it('should return the locale format for a given country code', () => {
48
+ expect((0, index_1.getLocaleFormat)('nb')).toMatchObject({ decimal: ',', thousands: ' ', useGrouping: true });
49
+ expect((0, index_1.getLocaleFormat)('no-NOB')).toMatchObject({ decimal: ',', thousands: ' ', useGrouping: true });
50
+ expect((0, index_1.getLocaleFormat)('en')).toMatchObject({ decimal: '.', thousands: ',', useGrouping: true });
51
+ expect((0, index_1.getLocaleFormat)('it')).toMatchObject({ decimal: ',', thousands: '.', useGrouping: true });
52
+ expect((0, index_1.getLocaleFormat)('xxxxxx')).toMatchObject({ thousands: ',', decimal: '.', useGrouping: true });
53
+ });
54
+ it('should return the locale format for a given number string', () => {
55
+ expect((0, index_1.getLocaleFormatFromString)('324,322')).toEqual({ thousands: ',', decimal: ',', useGrouping: true });
56
+ expect((0, index_1.getLocaleFormatFromString)('324.1224,322')).toEqual({ thousands: '.', decimal: ',', useGrouping: true });
57
+ expect((0, index_1.getLocaleFormatFromString)('324 322, 133')).toEqual({ thousands: ' ', decimal: ',', useGrouping: true });
58
+ expect((0, index_1.getLocaleFormatFromString)('3.322,1')).toEqual({ thousands: '.', decimal: ',', useGrouping: true });
59
+ expect((0, index_1.getLocaleFormatFromString)('-.3221')).toEqual({ thousands: ',', decimal: '.', useGrouping: true });
60
+ expect((0, index_1.getLocaleFormatFromString)('-1244,3221')).toEqual({ thousands: ',', decimal: ',', useGrouping: true });
61
+ expect((0, index_1.getLocaleFormatFromString)('-24 4343.3221')).toEqual({ thousands: ' ', decimal: '.', useGrouping: true });
62
+ });
63
+ });
64
+ //# sourceMappingURL=internationalization.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internationalization.test.js","sourceRoot":"","sources":["../../src/internationalization/internationalization.test.ts"],"names":[],"mappings":";;AAAA,oCAOkB;AAElB,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;AAE9B,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC;KAC7B,kBAAkB,CACjB,CAAC,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAC9D,CAAC;AAEJ,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EA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AA,iCAAyB,EAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CACrD,EAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC,CAAC;QACrD,MAAM,CAAC,IAAA,iCAAyB,EAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CACxD,EAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { LocaleFormat } from '../interfaces';
2
+ export declare function isLocaleSupported(countryCode: string): boolean;
3
+ export declare function getLocaleFormat(countryCode: string): LocaleFormat;
4
+ export declare function getLocaleFormatFromString(number: string): LocaleFormat;
5
+ export declare function convertStringToNumber(value: string | number, { thousands, decimal, useGrouping }: LocaleFormat): number | string;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertStringToNumber = exports.getLocaleFormatFromString = exports.getLocaleFormat = exports.isLocaleSupported = void 0;
4
+ function isLocaleSupported(countryCode) {
5
+ const locales = [countryCode];
6
+ const options = { localeMatcher: 'lookup' };
7
+ if (Intl.NumberFormat.supportedLocalesOf(locales, options).length > 0) {
8
+ return true;
9
+ }
10
+ return false;
11
+ }
12
+ exports.isLocaleSupported = isLocaleSupported;
13
+ function getLocaleFormat(countryCode) {
14
+ const formatLUT = {
15
+ bg: { decimal: ',', thousands: ' ' },
16
+ ca: { decimal: ',', thousands: '.' },
17
+ cs: { decimal: ',', thousands: ' ' },
18
+ da: { decimal: ',', thousands: '.' },
19
+ de: { decimal: ',', thousands: '.' },
20
+ el: { decimal: ',', thousands: '.' },
21
+ en: { decimal: '.', thousands: ',' },
22
+ es: { decimal: ',', thousands: '.' },
23
+ fi: { decimal: ',', thousands: ' ' },
24
+ fr: { decimal: ',', thousands: ' ' },
25
+ ssr: { decimal: '.', thousands: '\'' },
26
+ hu: { decimal: ',', thousands: ' ' },
27
+ it: { decimal: ',', thousands: '.' },
28
+ slf: { decimal: '.', thousands: '\'' },
29
+ ja: { decimal: '.', thousands: '\'' },
30
+ nl: { decimal: ',', thousands: '.' },
31
+ no: { decimal: ',', thousands: ' ' },
32
+ nb: { decimal: ',', thousands: ' ' },
33
+ nn: { decimal: ',', thousands: ' ' },
34
+ pl: { decimal: ',', thousands: ' ' },
35
+ pt: { decimal: ',', thousands: '.' },
36
+ ro: { decimal: ',', thousands: '.' },
37
+ ru: { decimal: ',', thousands: ' ' },
38
+ hr: { decimal: ',', thousands: '.' },
39
+ sr: { decimal: ',', thousands: '.' },
40
+ sv: { decimal: ',', thousands: '.' },
41
+ tr: { decimal: ',', thousands: '.' },
42
+ id: { decimal: '.', thousands: ',' },
43
+ uk: { decimal: ',', thousands: ' ' },
44
+ be: { decimal: ',', thousands: ' ' },
45
+ sl: { decimal: ',', thousands: '.' },
46
+ et: { decimal: '.', thousands: ' ' },
47
+ lv: { decimal: ',', thousands: ' ' },
48
+ lt: { decimal: ',', thousands: '.' },
49
+ af: { decimal: '.', thousands: ',' },
50
+ fo: { decimal: ',', thousands: '.' }
51
+ };
52
+ const defaultFormat = {
53
+ thousands: ',',
54
+ decimal: '.',
55
+ useGrouping: true
56
+ };
57
+ const pos = countryCode.search('-');
58
+ if (pos > 0) {
59
+ countryCode = countryCode.substr(0, pos);
60
+ }
61
+ const format = formatLUT[countryCode];
62
+ if (format) {
63
+ try {
64
+ const numberFormat = new Intl.NumberFormat(countryCode);
65
+ const usedOptions = numberFormat.resolvedOptions();
66
+ format.useGrouping = usedOptions.useGrouping;
67
+ }
68
+ catch (error) {
69
+ format.useGrouping = true;
70
+ }
71
+ return format;
72
+ }
73
+ return defaultFormat;
74
+ }
75
+ exports.getLocaleFormat = getLocaleFormat;
76
+ function getLocaleFormatFromString(number) {
77
+ const format = {
78
+ thousands: ',',
79
+ decimal: '.',
80
+ useGrouping: true
81
+ };
82
+ number.trim();
83
+ let thousandsPos = number.indexOf(' ');
84
+ if (thousandsPos > 0) {
85
+ format.thousands = ' ';
86
+ }
87
+ const decimalPos = number.indexOf('.');
88
+ thousandsPos = number.indexOf(',');
89
+ if (decimalPos < thousandsPos) {
90
+ format.decimal = ',';
91
+ if (decimalPos > 0) {
92
+ format.thousands = '.';
93
+ }
94
+ }
95
+ return format;
96
+ }
97
+ exports.getLocaleFormatFromString = getLocaleFormatFromString;
98
+ function convertStringToNumber(value, { thousands = ',', decimal = '.', useGrouping = true }) {
99
+ if (typeof (value) === 'number') {
100
+ return value;
101
+ }
102
+ const groupMinSize = useGrouping ? 3 : 1;
103
+ const pattern = new RegExp('^\\s*([+-]?(?:(?:\\d{1,3}(?:\\' + thousands + '\\d{' + groupMinSize + ',3})+)|\\d*))(?:\\' + decimal + '(\\d*))?\\s*$');
104
+ const result = value.match(pattern);
105
+ if (!((result != null) && result.length === 3)) {
106
+ return value;
107
+ }
108
+ const integerPart = result[1].replace(new RegExp('\\' + thousands, 'g'), '');
109
+ const fractionPart = result[2];
110
+ const number = parseFloat(integerPart + '.' + fractionPart);
111
+ return number;
112
+ }
113
+ exports.convertStringToNumber = convertStringToNumber;
114
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/internationalization/utils.ts"],"names":[],"mappings":";;;AAMA,SAAgB,iBAAiB,CAAC,WAAkB;IAClD,MAAM,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;IAC9B,MAAM,OAAO,GAAG,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC;IAC5C,IAAI,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;QACrE,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,8CAOC;AAOD,SAAgB,eAAe,CAAC,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;IAC5D,OAAO,MAAM,CAAC;AAChB,CAAC;AAbD,sDAaC"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/fraction.js/fraction.d.ts","../src/utils.ts","../src/constants.ts","../src/parse/parse-number.ts","../src/rounding/rounding.ts","../src/interfaces.ts","../src/units.ts","../src/index.ts","../src/parse/parse-number.test.ts","../src/rounding/rounding.test.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"3cea2bff14d3a7617e944e295d33729fb51c44308c276b5fd77681c9eb0c8ba1",{"version":"df5f319ed1ed8b58681b5939fb51a02074b8f55e61f817b4398d3ee2df68928c","signature":"1af74cf040f3f70a0a1018ba11cf4eb194c20f4d19f68440c39b6c23aa9666bb"},{"version":"7a0c4070357e171081f005b51be7b6f2435c443126ee138d568df59f2c900a62","signature":"ae2f2012fcdce14067d800c798d68574a425f5192a2f053c20dd224eedc1d734"},{"version":"d3f523ebdf906254800dc1b9901b8e2332dc3e5352c058e97e7cd9c3c5aedb84","signature":"883c304fe8e2af3ac50ab4f4f60a9712839c0d40c8ba2054968817d55fdfd39e"},{"version":"e3eacca9a820604aed65e133a12100cb06f63874a3f8c67209c7834c52d6582e","signature":"0352d31bee5cd2df08d1fc9d81cba48bcee49ba4191703184f60ef8f9826e4b3"},{"version":"546cbc62ccc0e8a089892a4004cc51a5f41a5af75f8d74685932a9994321cf76","signature":"bc0583ba088cb436ae3d118a8c509852e98cef7f109efa47cb4cdbc91b672385"},{"version":"68135cbe348892d4601e330cbee98eb8ef308747b3acaa60b5cfbf22378dde85","signature":"7b270e2d0c2d589359288267c875238ebc966cccc13029793dd2b2654206444c"},{"version":"1d0b94b802d4cfbde067119627a786d7f78fc85ac9ffb55d10ff196bb372ec62","signature":"18cb8e9bdbe72430c5d63eeaf15f966bbce97baabf756b5833a0d6ec04af8d4b"},{"version":"723ed0e4e13331b0aa61549b99067239094be4cd6f1227be72e6d3066ed87ee7","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"a300841bfc12dce355d7815f65eef2df151cd79cf9e3d4b66c2d36b3477d4982","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"5540267409ab1444c73c786b8ae4caa37d5f0ea41f9255c6123338da790ce5cc","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9deb3a5eaf187df1428f0fee83c8c51eedb74f6da3442410bad9688e42a7e2b5","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","db86f82fac051ae344b47e8fe7ac7990174b41db79b2b220a49dc5a47c71a9b5","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","cf0a69c71aedf2f8fe45925abd554fd3dc7301ce66d6ab7521fb8c3471c24dd8","56e6722c6013609b3e5e6ed4a8a7e01f41da6c5e3d6f0ecff3d09ef7a81414cf","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","d79fda68cbfb361c4ee9cd9ea169babb65887534d64017726cd01f54783d20a5","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"alwaysStrict":true,"declaration":true,"esModuleInterop":true,"jsx":2,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"suppressImplicitAnyIndexErrors":true,"target":5},"fileIdsList":[[115,117],[67],[69],[70,75],[71,79,80,87,96],[71,72,79,87],[73,103],[74,75,80,88],[75,96],[76,77,79,87],[77],[78,79],[79],[79,80,81,96,102],[80,81],[82,87,96,102],[79,80,82,83,87,96,99,102],[82,84,96,99,102],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],[79,85],[86,102],[77,79,87,96],[88],[89],[69,90],[91,101],[92],[93],[79,94],[94,95,103,105],[79,96],[97],[98],[87,96,99],[100],[87,101],[93,102],[103],[96,104],[105],[106],[79,81,96,102,105,107],[96,108],[111,112],[111,112,113,114],[116],[58],[58,59,61,63],[60],[58,63],[61],[58,60],[58,59,61,62],[57],[62]],"referencedMap":[[118,1],[67,2],[69,3],[70,4],[71,5],[72,6],[73,7],[74,8],[75,9],[76,10],[77,11],[78,12],[79,13],[80,14],[81,15],[82,16],[83,17],[84,18],[110,19],[85,20],[86,21],[87,22],[88,23],[89,24],[90,25],[91,26],[92,27],[93,28],[94,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,37],[103,38],[104,39],[105,40],[106,41],[107,42],[108,43],[113,44],[115,45],[114,44],[117,46],[59,47],[64,48],[65,49],[60,50],[66,51],[61,52],[63,53],[58,54]],"exportedModulesMap":[[118,1],[67,2],[69,3],[70,4],[71,5],[72,6],[73,7],[74,8],[75,9],[76,10],[77,11],[78,12],[79,13],[80,14],[81,15],[82,16],[83,17],[84,18],[110,19],[85,20],[86,21],[87,22],[88,23],[89,24],[90,25],[91,26],[92,27],[93,28],[94,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,37],[103,38],[104,39],[105,40],[106,41],[107,42],[108,43],[113,44],[115,45],[114,44],[117,46],[64,48],[63,55]],"semanticDiagnosticsPerFile":[118,67,69,70,71,72,73,74,75,76,77,78,79,80,81,68,109,82,83,84,110,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,57,111,113,115,114,112,117,116,11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,54,55,1,10,56,59,64,62,65,60,66,61,63,58]},"version":"4.9.5"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/fraction.js/fraction.d.ts","../src/utils.ts","../src/constants.ts","../src/parse/parse-number.ts","../src/rounding/rounding.ts","../src/interfaces.ts","../src/units.ts","../src/internationalization/utils.ts","../src/internationalization/internationalization.ts","../src/index.ts","../src/internationalization/internationalization.test.ts","../src/parse/parse-number.test.ts","../src/rounding/rounding.test.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"3cea2bff14d3a7617e944e295d33729fb51c44308c276b5fd77681c9eb0c8ba1",{"version":"df5f319ed1ed8b58681b5939fb51a02074b8f55e61f817b4398d3ee2df68928c","signature":"1af74cf040f3f70a0a1018ba11cf4eb194c20f4d19f68440c39b6c23aa9666bb"},{"version":"7a0c4070357e171081f005b51be7b6f2435c443126ee138d568df59f2c900a62","signature":"ae2f2012fcdce14067d800c798d68574a425f5192a2f053c20dd224eedc1d734"},{"version":"d3f523ebdf906254800dc1b9901b8e2332dc3e5352c058e97e7cd9c3c5aedb84","signature":"883c304fe8e2af3ac50ab4f4f60a9712839c0d40c8ba2054968817d55fdfd39e"},{"version":"e3eacca9a820604aed65e133a12100cb06f63874a3f8c67209c7834c52d6582e","signature":"0352d31bee5cd2df08d1fc9d81cba48bcee49ba4191703184f60ef8f9826e4b3"},{"version":"d4af697d4776e7110481f35d76c36c0da371c371fe474ee495f38ae794f4c060","signature":"54e3dfee28921c4f4cb818320e17142e4695d13f9b73000bfadb37120a404919"},{"version":"68135cbe348892d4601e330cbee98eb8ef308747b3acaa60b5cfbf22378dde85","signature":"7b270e2d0c2d589359288267c875238ebc966cccc13029793dd2b2654206444c"},{"version":"68f0f73855b77244e588f259a392c33ae9c9261e40b3d0607169c8d44b02208c","signature":"10e3ee5ce42dc4eb9c1f036c39a552fcc1e0f1dae91ed1403612e4555f99dc27"},{"version":"a42b8a9e2a4b6f7663426eab7ddb04010001990946a5650201e0e42c4c91c4cf","signature":"d9e8506fad8357873938d72be0768fe0ad9373ba5303ae9c591c0dafdd3ec20a"},{"version":"60b62fdda477961851a26d296bde0bc41528ca86ecccee3a9730480d73e33b4f","signature":"5803b4cd1e04be96532c15320239b187703a1ed783241aebead0a051bc4d0693"},{"version":"7d65d672bb46c42a24e69ef27b063a2bea75f769ceb86b5972ce25436983aade","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"723ed0e4e13331b0aa61549b99067239094be4cd6f1227be72e6d3066ed87ee7","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"a300841bfc12dce355d7815f65eef2df151cd79cf9e3d4b66c2d36b3477d4982","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"5540267409ab1444c73c786b8ae4caa37d5f0ea41f9255c6123338da790ce5cc","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9deb3a5eaf187df1428f0fee83c8c51eedb74f6da3442410bad9688e42a7e2b5","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","db86f82fac051ae344b47e8fe7ac7990174b41db79b2b220a49dc5a47c71a9b5","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","cf0a69c71aedf2f8fe45925abd554fd3dc7301ce66d6ab7521fb8c3471c24dd8","56e6722c6013609b3e5e6ed4a8a7e01f41da6c5e3d6f0ecff3d09ef7a81414cf","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","d79fda68cbfb361c4ee9cd9ea169babb65887534d64017726cd01f54783d20a5","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"alwaysStrict":true,"declaration":true,"esModuleInterop":true,"jsx":2,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"suppressImplicitAnyIndexErrors":true,"target":5},"fileIdsList":[[118,120],[70],[72],[73,78],[74,82,83,90,99],[74,75,82,90],[76,106],[77,78,83,91],[78,99],[79,80,82,90],[80],[81,82],[82],[82,83,84,99,105],[83,84],[85,90,99,105],[82,83,85,86,90,99,102,105],[85,87,99,102,105],[70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],[82,88],[89,105],[80,82,90,99],[91],[92],[72,93],[94,104],[95],[96],[82,97],[97,98,106,108],[82,99],[100],[101],[90,99,102],[103],[90,104],[96,105],[106],[99,107],[108],[109],[82,84,99,105,108,110],[99,111],[114,115],[114,115,116,117],[119],[58],[58,59,61,63,64,65],[66],[62,64],[62],[60],[58,63],[61],[58,60],[58,59,61,62],[57]],"referencedMap":[[121,1],[70,2],[72,3],[73,4],[74,5],[75,6],[76,7],[77,8],[78,9],[79,10],[80,11],[81,12],[82,13],[83,14],[84,15],[85,16],[86,17],[87,18],[113,19],[88,20],[89,21],[90,22],[91,23],[92,24],[93,25],[94,26],[95,27],[96,28],[97,29],[98,30],[99,31],[100,32],[101,33],[102,34],[103,35],[104,36],[105,37],[106,38],[107,39],[108,40],[109,41],[110,42],[111,43],[116,44],[118,45],[117,44],[120,46],[59,47],[66,48],[67,49],[65,50],[64,51],[68,52],[60,53],[69,54],[61,55],[63,56],[58,57]],"exportedModulesMap":[[121,1],[70,2],[72,3],[73,4],[74,5],[75,6],[76,7],[77,8],[78,9],[79,10],[80,11],[81,12],[82,13],[83,14],[84,15],[85,16],[86,17],[87,18],[113,19],[88,20],[89,21],[90,22],[91,23],[92,24],[93,25],[94,26],[95,27],[96,28],[97,29],[98,30],[99,31],[100,32],[101,33],[102,34],[103,35],[104,36],[105,37],[106,38],[107,39],[108,40],[109,41],[110,42],[111,43],[116,44],[118,45],[117,44],[120,46],[66,48],[64,51],[63,51]],"semanticDiagnosticsPerFile":[121,70,72,73,74,75,76,77,78,79,80,81,82,83,84,71,112,85,86,87,113,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,57,114,116,118,117,115,120,119,11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,54,55,1,10,56,59,66,62,67,65,64,68,60,69,61,63,58]},"version":"4.9.5"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/units",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Package for units management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",