@oliasoft-open-source/units 1.7.2 → 2.0.0-beta-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
@@ -1,4 +1,5 @@
1
1
  import { label, showAltUnitsList, getAltUnitsListByQuantity, checkAndCleanDecimalComma, unitFromKey, to, split, unum, toBase, altUnitsList, convertTable, roundNumberWithLabel, withUnit, unumWithUnit, validateAndClean, isValueWithUnit, getValue, getUnit, convertSamePrecision, convertAndGetValue, getUnitsForQuantity, getQuantities, unitFromQuantity, withPrettyUnitLabel } from './units';
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
- import { isNumeric, isNonNumerical, isEmptyValueWithUnit, allNumbers, formatNumber, charCount, getNumberOfDigitsToShow, roundNumber, fraction, asFraction, numFraction, cleanNumStr, cleanNum, toNum } from './utils';
4
- 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, roundNumber, fraction, asFraction, numFraction, cleanNumStr, cleanNum, toNum, ALT_UNITS, LABELS, UNIT_FROM_KEY, KNOWN_CONVERSIONS, DEPRECATED_UNITS, UNIT_ALIASES, INTERMEDIATE_CONVERSIONS, KNOWN_UNITS, QUANTITIES_DESCRIPTION, UNITS_DESCRIPTION };
3
+ import { isNumeric, isNonNumerical, isEmptyValueWithUnit, allNumbers, formatNumber, charCount, getNumberOfDigitsToShow, fraction, asFraction, numFraction, cleanNumStr, cleanNum, toNum } from './utils';
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 };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
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.toNum = exports.cleanNum = exports.cleanNumStr = exports.numFraction = exports.asFraction = exports.fraction = exports.roundNumber = 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.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;
4
4
  const units_1 = require("./units");
5
5
  Object.defineProperty(exports, "label", { enumerable: true, get: function () { return units_1.label; } });
6
6
  Object.defineProperty(exports, "showAltUnitsList", { enumerable: true, get: function () { return units_1.showAltUnitsList; } });
@@ -45,11 +45,12 @@ Object.defineProperty(exports, "allNumbers", { enumerable: true, get: function (
45
45
  Object.defineProperty(exports, "formatNumber", { enumerable: true, get: function () { return utils_1.formatNumber; } });
46
46
  Object.defineProperty(exports, "charCount", { enumerable: true, get: function () { return utils_1.charCount; } });
47
47
  Object.defineProperty(exports, "getNumberOfDigitsToShow", { enumerable: true, get: function () { return utils_1.getNumberOfDigitsToShow; } });
48
- Object.defineProperty(exports, "roundNumber", { enumerable: true, get: function () { return utils_1.roundNumber; } });
49
48
  Object.defineProperty(exports, "fraction", { enumerable: true, get: function () { return utils_1.fraction; } });
50
49
  Object.defineProperty(exports, "asFraction", { enumerable: true, get: function () { return utils_1.asFraction; } });
51
50
  Object.defineProperty(exports, "numFraction", { enumerable: true, get: function () { return utils_1.numFraction; } });
52
51
  Object.defineProperty(exports, "cleanNumStr", { enumerable: true, get: function () { return utils_1.cleanNumStr; } });
53
52
  Object.defineProperty(exports, "cleanNum", { enumerable: true, get: function () { return utils_1.cleanNum; } });
54
53
  Object.defineProperty(exports, "toNum", { enumerable: true, get: function () { return utils_1.toNum; } });
54
+ const rounding_1 = require("./rounding/rounding");
55
+ Object.defineProperty(exports, "round", { enumerable: true, get: function () { return rounding_1.round; } });
55
56
  //# 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;AAkCf,sFA1DA,aAAK,OA0DA;AACL,iGA1DA,wBAAgB,OA0DA;AAChB,0GA1DA,iCAAyB,OA0DA;AAGzB,0GA5DA,iCAAyB,OA4DA;AACzB,4FA5DA,mBAAW,OA4DA;AAEX,mFA7DA,UAAE,OA6DA;AACF,sFA7DA,aAAK,OA6DA;AACL,qFA7DA,YAAI,OA6DA;AACJ,uFA7DA,cAAM,OA6DA;AACN,6FA7DA,oBAAY,OA6DA;AACZ,6FA7DA,oBAAY,OA6DA;AACZ,qGA7DA,4BAAoB,OA6DA;AACpB,yFA7DA,gBAAQ,OA6DA;AACR,6FA7DA,oBAAY,OA6DA;AACZ,iGA7DA,wBAAgB,OA6DA;AAChB,gGA7DA,uBAAe,OA6DA;AACf,yFA7DA,gBAAQ,OA6DA;AACR,wFA7DA,eAAO,OA6DA;AACP,qGA7DA,4BAAoB,OA6DA;AACpB,mGA7DA,0BAAkB,OA6DA;AAnBlB,oGAzCA,2BAAmB,OAyCA;AACnB,8FAzCA,qBAAa,OAyCA;AAGb,iGA3CA,wBAAgB,OA2CA;AAgBhB,oGA1DA,2BAAmB,OA0DA;AAvDrB,2CAWqB;AA6DnB,0FAvEA,qBAAS,OAuEA;AACT,uFAvEA,kBAAM,OAuEA;AACN,8FAvEA,yBAAa,OAuEA;AACb,kGAvEA,6BAAiB,OAuEA;AACjB,iGAvEA,4BAAgB,OAuEA;AAChB,6FAvEA,wBAAY,OAuEA;AACZ,yGAvEA,oCAAwB,OAuEA;AACxB,4FAvEA,uBAAW,OAuEA;AACX,uGAvEA,kCAAsB,OAuEA;AACtB,kGAvEA,6BAAiB,OAuEA;AApEnB,mCAeiB;AA6Bf,0FA3CA,iBAAS,OA2CA;AACT,+FA3CA,sBAAc,OA2CA;AACd,qGA3CA,4BAAoB,OA2CA;AACpB,2FA3CA,kBAAU,OA2CA;AACV,6FA3CA,oBAAY,OA2CA;AACZ,0FA3CA,iBAAS,OA2CA;AACT,wGA3CA,+BAAuB,OA2CA;AACvB,4FA3CA,mBAAW,OA2CA;AACX,yFA3CA,gBAAQ,OA2CA;AACR,2FA3CA,kBAAU,OA2CA;AACV,4FA3CA,mBAAW,OA2CA;AACX,4FA3CA,mBAAW,OA2CA;AACX,yFA3CA,gBAAQ,OA2CA;AACR,sFA3CA,aAAK,OA2CA"}
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,0BAAkB,OAgEA;AAnBlB,oGA5CA,2BAAmB,OA4CA;AACnB,8FA5CA,qBAAa,OA4CA;AAGb,iGA9CA,wBAAgB,OA8CA;AAgBhB,oGA7DA,2BAAmB,OA6DA;AA1DrB,2CAWqB;AAgEnB,0FA1EA,qBAAS,OA0EA;AACT,uFA1EA,kBAAM,OA0EA;AACN,8FA1EA,yBAAa,OA0EA;AACb,kGA1EA,6BAAiB,OA0EA;AACjB,iGA1EA,4BAAgB,OA0EA;AAChB,6FA1EA,wBAAY,OA0EA;AACZ,yGA1EA,oCAAwB,OA0EA;AACxB,4FA1EA,uBAAW,OA0EA;AACX,uGA1EA,kCAAsB,OA0EA;AACtB,kGA1EA,6BAAiB,OA0EA;AAvEnB,mCAciB;AAiCf,0FA9CA,iBAAS,OA8CA;AACT,+FA9CA,sBAAc,OA8CA;AACd,qGA9CA,4BAAoB,OA8CA;AACpB,2FA9CA,kBAAU,OA8CA;AACV,6FA9CA,oBAAY,OA8CA;AACZ,0FA9CA,iBAAS,OA8CA;AACT,wGA9CA,+BAAuB,OA8CA;AACvB,yFA9CA,gBAAQ,OA8CA;AACR,2FA9CA,kBAAU,OA8CA;AACV,4FA9CA,mBAAW,OA8CA;AACX,4FA9CA,mBAAW,OA8CA;AACX,yFA9CA,gBAAQ,OA8CA;AACR,sFA9CA,aAAK,OA8CA;AA3CP,kDAE6B;AA0C3B,sFA3CA,gBAAK,OA2CA"}
@@ -0,0 +1,6 @@
1
+ export declare const parseNumber: (value: number | string) => {
2
+ number: any;
3
+ unit: string | null;
4
+ isString: boolean;
5
+ };
6
+ export declare const unParseNumber: (value: number | string, unit: string | null, isString: boolean) => number | string;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unParseNumber = exports.parseNumber = void 0;
4
+ const units_1 = require("../units");
5
+ const utils_1 = require("../utils");
6
+ const parseNumber = (value) => {
7
+ const isString = typeof value === 'string';
8
+ const hasUnit = isString && (0, units_1.isValueWithUnit)(value);
9
+ const unit = hasUnit ? (0, units_1.getUnit)(value) : null;
10
+ const number = (0, utils_1.toNum)(hasUnit ? (0, units_1.getValue)(value) : value);
11
+ return {
12
+ number,
13
+ unit,
14
+ isString,
15
+ };
16
+ };
17
+ exports.parseNumber = parseNumber;
18
+ const unParseNumber = (value, unit, isString) => {
19
+ return unit ? (0, units_1.withUnit)(value, unit)
20
+ : isString ? String(value)
21
+ : value;
22
+ };
23
+ exports.unParseNumber = unParseNumber;
24
+ //# sourceMappingURL=parse-number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-number.js","sourceRoot":"","sources":["../../src/parse/parse-number.ts"],"names":[],"mappings":";;;AAAA,oCAAwE;AACxE,oCAAiC;AAU1B,MAAM,WAAW,GAAG,CAAC,KAAoB,EAAE,EAAE;IAClD,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC;IAC3C,MAAM,OAAO,GAAG,QAAQ,IAAI,IAAA,uBAAe,EAAC,KAAK,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAA,eAAO,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7C,MAAM,MAAM,GAAG,IAAA,aAAK,EAAC,OAAO,CAAC,CAAC,CAAC,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO;QACL,MAAM;QACN,IAAI;QACJ,QAAQ;KACT,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,WAAW,eAUtB;AAYK,MAAM,aAAa,GAAG,CAAC,KAAoB,EAAE,IAAiB,EAAE,QAAiB,EAAiB,EAAE;IACzG,OAAO,IAAI,CAAC,CAAC,CAAC,IAAA,gBAAQ,EAAC,KAAK,EAAE,IAAI,CAAC;QACjC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YACxB,CAAC,CAAC,KAAK,CAAC;AACd,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const parse_number_1 = require("./parse-number");
4
+ describe('Parse', () => {
5
+ describe('parse', () => {
6
+ test('parses a generic numeric input into number, unit and type properties', () => {
7
+ expect((0, parse_number_1.parseNumber)(1.2)).toStrictEqual({ number: 1.2, unit: null, isString: false });
8
+ expect((0, parse_number_1.parseNumber)('1.2')).toStrictEqual({ number: 1.2, unit: null, isString: true });
9
+ expect((0, parse_number_1.parseNumber)('1,2')).toStrictEqual({ number: 1.2, unit: null, isString: true });
10
+ expect((0, parse_number_1.parseNumber)('1.2|m')).toStrictEqual({ number: 1.2, unit: 'm', isString: true });
11
+ expect((0, parse_number_1.parseNumber)('1e3|m')).toStrictEqual({ number: 1000, unit: 'm', isString: true });
12
+ expect((0, parse_number_1.parseNumber)('1/2|m')).toStrictEqual({ number: 0.5, unit: 'm', isString: true });
13
+ expect((0, parse_number_1.parseNumber)('foobar')).toStrictEqual({ number: 'foobar', unit: null, isString: true });
14
+ });
15
+ });
16
+ describe('unParse', () => {
17
+ test('rounds values to N decimal places', () => {
18
+ expect((0, parse_number_1.unParseNumber)(1.2, null, false)).toBe(1.2);
19
+ expect((0, parse_number_1.unParseNumber)(1.2, null, true)).toBe('1.2');
20
+ expect((0, parse_number_1.unParseNumber)(1.2, 'm', true)).toBe('1.2|m');
21
+ });
22
+ });
23
+ });
24
+ //# sourceMappingURL=parse-number.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-number.test.js","sourceRoot":"","sources":["../../src/parse/parse-number.test.ts"],"names":[],"mappings":";;AAAA,iDAGwB;AAExB,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACrB,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACrB,IAAI,CAAC,sEAAsE,EAAE,GAAG,EAAE;YAChF,MAAM,CAAC,IAAA,0BAAW,EAAC,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC,CAAC;YACnF,MAAM,CAAC,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;YACpF,MAAM,CAAC,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;YACpF,MAAM,CAAC,IAAA,0BAAW,EAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;YACrF,MAAM,CAAC,IAAA,0BAAW,EAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;YACtF,MAAM,CAAC,IAAA,0BAAW,EAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;YACrF,MAAM,CAAC,IAAA,0BAAW,EAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;QAC9F,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACvB,IAAI,CAAC,mCAAmC,EAAE,GAAG,EAAE;YAC7C,MAAM,CAAC,IAAA,4BAAa,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClD,MAAM,CAAC,IAAA,4BAAa,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnD,MAAM,CAAC,IAAA,4BAAa,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const roundNumber: (value: number, n?: number) => number;
2
+ export declare const round: (value: number | string | null, n?: number) => number | string | null;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.round = exports.roundNumber = void 0;
4
+ const parse_number_1 = require("../parse/parse-number");
5
+ const utils_1 = require("../utils");
6
+ const defaultDecimals = 4;
7
+ const roundNumber = (value, n = defaultDecimals) => {
8
+ const factor = 10 ** n;
9
+ return Math.round(value * factor) / factor;
10
+ };
11
+ exports.roundNumber = roundNumber;
12
+ const round = (value, n = defaultDecimals) => {
13
+ if (typeof value === 'number') {
14
+ return (0, exports.roundNumber)(value, n);
15
+ }
16
+ if (value === null) {
17
+ return null;
18
+ }
19
+ const { number, unit, isString } = (0, parse_number_1.parseNumber)(value);
20
+ const result = !(0, utils_1.isNumeric)(number) || (typeof number === 'string' && number.endsWith('.'))
21
+ ? value
22
+ : (0, exports.roundNumber)(number, n);
23
+ return (0, parse_number_1.unParseNumber)(result, unit, isString);
24
+ };
25
+ exports.round = round;
26
+ //# sourceMappingURL=rounding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rounding.js","sourceRoot":"","sources":["../../src/rounding/rounding.ts"],"names":[],"mappings":";;;AAAA,wDAAmE;AACnE,oCAAqC;AAErC,MAAM,eAAe,GAAG,CAAC,CAAC;AAWnB,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,CAAC,GAAG,eAAe,EAAU,EAAE;IACxE,MAAM,MAAM,GAAG,EAAE,IAAI,CAAC,CAAC;IACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AAC7C,CAAC,CAAC;AAHW,QAAA,WAAW,eAGtB;AAWK,MAAM,KAAK,GAAG,CAAC,KAAyB,EAAE,CAAC,GAAG,eAAe,EAAsB,EAAE;IAC1F,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAE7B,OAAO,IAAA,mBAAW,EAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KAC9B;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAC,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,CAAC,IAAA,iBAAS,EAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACvF,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,IAAA,mBAAW,EAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC3B,OAAO,IAAA,4BAAa,EAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC/C,CAAC,CAAC;AAbW,QAAA,KAAK,SAahB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const rounding_1 = require("./rounding");
4
+ describe('Rounding', () => {
5
+ describe('roundNumber', () => {
6
+ test('rounds values to N decimal places', () => {
7
+ expect((0, rounding_1.roundNumber)(1.234567)).toBe(1.2346);
8
+ expect((0, rounding_1.round)(1.234567, 3)).toBe(1.235);
9
+ });
10
+ });
11
+ describe('round', () => {
12
+ test('rounds values to N decimal places', () => {
13
+ expect((0, rounding_1.round)(1.234567)).toBe(1.2346);
14
+ expect((0, rounding_1.round)(1.234567, 3)).toBe(1.235);
15
+ });
16
+ test('does not append trailing 0s', () => {
17
+ expect((0, rounding_1.round)(1, 3)).toBe(1);
18
+ expect((0, rounding_1.round)(1.1, 3)).toBe(1.1);
19
+ });
20
+ test('handles stringified numbers', () => {
21
+ expect((0, rounding_1.round)('1.234567', 3)).toBe('1.235');
22
+ expect((0, rounding_1.round)('1.', 3)).toBe('1.');
23
+ expect((0, rounding_1.round)('1,', 3)).toBe('1,');
24
+ });
25
+ test('handles comma decimals', () => {
26
+ expect((0, rounding_1.round)('1,234567', 3)).toBe('1.235');
27
+ });
28
+ test('handles numbers with units', () => {
29
+ expect((0, rounding_1.round)('1.234567|m', 3)).toBe('1.235|m');
30
+ });
31
+ test('handles fractions', () => {
32
+ expect((0, rounding_1.round)('1/3', 3)).toBe('0.333');
33
+ expect((0, rounding_1.round)('1/3|m', 3)).toBe('0.333|m');
34
+ });
35
+ test('handles scientific notation', () => {
36
+ expect((0, rounding_1.round)('1.1e-2', 3)).toBe('0.011');
37
+ expect((0, rounding_1.round)('1.1e-2|m', 3)).toBe('0.011|m');
38
+ });
39
+ test('handles bad / impossible inputs by returning input', () => {
40
+ expect((0, rounding_1.round)(null, 2)).toBe(null);
41
+ expect((0, rounding_1.round)(NaN, 2)).toBe(NaN);
42
+ expect((0, rounding_1.round)(Infinity, 2)).toBe(Infinity);
43
+ expect((0, rounding_1.round)(-Infinity, 2)).toBe(-Infinity);
44
+ expect((0, rounding_1.round)('', 2)).toBe('');
45
+ expect((0, rounding_1.round)('foobar', 2)).toBe('foobar');
46
+ });
47
+ });
48
+ });
49
+ //# sourceMappingURL=rounding.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rounding.test.js","sourceRoot":"","sources":["../../src/rounding/rounding.test.ts"],"names":[],"mappings":"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"}
@@ -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/interfaces.ts","../src/units.ts","../src/index.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":"b5b3f8a1f6eb061a60879d2b022ce4f6fd9c50a272cac164d01dbcf3dbd0b725","signature":"7e4276ddb582f168a6ebe1b5a35deaaef0fa44111e846a0d3dad8b263f2d8e17"},{"version":"7a0c4070357e171081f005b51be7b6f2435c443126ee138d568df59f2c900a62","signature":"ae2f2012fcdce14067d800c798d68574a425f5192a2f053c20dd224eedc1d734"},{"version":"546cbc62ccc0e8a089892a4004cc51a5f41a5af75f8d74685932a9994321cf76","signature":"bc0583ba088cb436ae3d118a8c509852e98cef7f109efa47cb4cdbc91b672385"},{"version":"a160aeff4c243614f9a163a8397bae6d499fb5f93226abd0bfecc68e13048693","signature":"7b270e2d0c2d589359288267c875238ebc966cccc13029793dd2b2654206444c"},{"version":"d7afce5c7b0bab24d683320c230878b94ebe303999c489ae616f40e2749c40e6","signature":"10248177fd6ffb058a1afb689abd62b47a451e2efb7611b6d10b8e92fccc7628"},"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":[[111,113],[63],[65],[66,71],[67,75,76,83,92],[67,68,75,83],[69,99],[70,71,76,84],[71,92],[72,73,75,83],[73],[74,75],[75],[75,76,77,92,98],[76,77],[78,83,92,98],[75,76,78,79,83,92,95,98],[78,80,92,95,98],[63,64,65,66,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],[75,81],[82,98],[73,75,83,92],[84],[85],[65,86],[87,97],[88],[89],[75,90],[90,91,99,101],[75,92],[93],[94],[83,92,95],[96],[83,97],[89,98],[99],[92,100],[101],[102],[75,77,92,98,101,103],[92,104],[107,108],[107,108,109,110],[112],[58],[58,59,61],[58,59,60],[57],[60]],"referencedMap":[[114,1],[63,2],[65,3],[66,4],[67,5],[68,6],[69,7],[70,8],[71,9],[72,10],[73,11],[74,12],[75,13],[76,14],[77,15],[78,16],[79,17],[80,18],[106,19],[81,20],[82,21],[83,22],[84,23],[85,24],[86,25],[87,26],[88,27],[89,28],[90,29],[91,30],[92,31],[93,32],[94,33],[95,34],[96,35],[97,36],[98,37],[99,38],[100,39],[101,40],[102,41],[103,42],[104,43],[109,44],[111,45],[110,44],[113,46],[59,47],[62,48],[61,49],[58,50]],"exportedModulesMap":[[114,1],[63,2],[65,3],[66,4],[67,5],[68,6],[69,7],[70,8],[71,9],[72,10],[73,11],[74,12],[75,13],[76,14],[77,15],[78,16],[79,17],[80,18],[106,19],[81,20],[82,21],[83,22],[84,23],[85,24],[86,25],[87,26],[88,27],[89,28],[90,29],[91,30],[92,31],[93,32],[94,33],[95,34],[96,35],[97,36],[98,37],[99,38],[100,39],[101,40],[102,41],[103,42],[104,43],[109,44],[111,45],[110,44],[113,46],[62,48],[61,51]],"semanticDiagnosticsPerFile":[114,63,65,66,67,68,69,70,71,72,73,74,75,76,77,64,105,78,79,80,106,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,57,107,109,111,110,108,113,112,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,62,60,61,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/interfaces.ts","../src/units.ts","../src/parse/parse-number.ts","../src/rounding/rounding.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":"b5b3f8a1f6eb061a60879d2b022ce4f6fd9c50a272cac164d01dbcf3dbd0b725","signature":"7e4276ddb582f168a6ebe1b5a35deaaef0fa44111e846a0d3dad8b263f2d8e17"},{"version":"7a0c4070357e171081f005b51be7b6f2435c443126ee138d568df59f2c900a62","signature":"ae2f2012fcdce14067d800c798d68574a425f5192a2f053c20dd224eedc1d734"},{"version":"546cbc62ccc0e8a089892a4004cc51a5f41a5af75f8d74685932a9994321cf76","signature":"bc0583ba088cb436ae3d118a8c509852e98cef7f109efa47cb4cdbc91b672385"},{"version":"a160aeff4c243614f9a163a8397bae6d499fb5f93226abd0bfecc68e13048693","signature":"7b270e2d0c2d589359288267c875238ebc966cccc13029793dd2b2654206444c"},{"version":"8f813195a31fc2848c69756a67bfe3a899625bffb0ea53e905318b656e0979ad","signature":"883c304fe8e2af3ac50ab4f4f60a9712839c0d40c8ba2054968817d55fdfd39e"},{"version":"954e6333b34f0c3688bc95b9860938052c3e4e2a43ec52280c8a5f287d3ee3e8","signature":"cf6fb4b416509109d1938442028508d0475544a3e4829b7f72fb09fa765a1448"},{"version":"1d0b94b802d4cfbde067119627a786d7f78fc85ac9ffb55d10ff196bb372ec62","signature":"18cb8e9bdbe72430c5d63eeaf15f966bbce97baabf756b5833a0d6ec04af8d4b"},{"version":"dff1f10460941d07be9502c3583c9591f12751b2dbe97ccabde89ce6884e4bdc","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"aef5119fbe51d34e575e1a62b316f435f024dea6057ebbf313f4281aed32ef9f","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],[62],[58,61],[63],[58,62],[58,59,60],[57],[60]],"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],[62,50],[66,51],[63,52],[61,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],[61,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,60,65,62,66,63,61,58]},"version":"4.9.5"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/units",
3
- "version": "1.7.2",
3
+ "version": "2.0.0-beta-2",
4
4
  "description": "Package for units management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",