@procore/globalization-toolkit 0.1.0 → 0.3.0

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/README.md CHANGED
@@ -29,6 +29,26 @@ Our repo follows the [Conventional Commits](https://www.conventionalcommits.org/
29
29
  Commits are linted with [`commitlint`](https://github.com/conventional-changelog/commitlint) in a `pre-commit` hook, which will fail commits that do not follow the [configured rules](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional#rules).
30
30
  We use the command line tool [`commitizen`](https://github.com/commitizen/cz-cli#using-the-command-line-tool) to help walk you through generating a Conventional Commit.
31
31
  To invoke this tool, run `npx cz` or use the script above.
32
+ If you set `PREPARE_COMMIT_MSG` to `true` in your environment, `commitizen` will run automatically each time you `git commit`.
33
+ This can cause odd behavior when doing things like amending or rebasing commits.
34
+ You can always quit the wizard with `Ctrl-C`.
32
35
 
33
36
  ## Publishing
34
- Create a new Release in github. This will trigger a CircleCI workflow that will publish a new release to npm.
37
+ We use [`semantic-release`](https://semantic-release.gitbook.io/semantic-release/) to manage releases and publishing to NPM.
38
+ Semantic Release relies on the project commit history to create release notes and determine the next version.
39
+ Merges into the `main` branch will run `semantic-release`, but `semantic-release` will publish a release only for certain commit types.
40
+
41
+ Specifically, the following commit types do not trigger a release:
42
+
43
+ - `doc:` (documentation changes)
44
+ - `build(deps-dev):` (development dependency changes, typically version bumps by dependabot)
45
+ - `chore:` (misc changes tools and libraries that don't effect user-facing library code)
46
+ - `test:` (changes to specs/testing resources)
47
+ - `no-release:` (Or commits otherwise labeled to not release with `[skip release]` or `[release skip]`)
48
+
49
+ The specific steps that run can be found in [this section of the library's documentation](https://github.com/semantic-release/semantic-release#release-steps).
50
+
51
+ Details about how commit types are mapped to versioning can be found in the [commit analyzer documentation](https://github.com/semantic-release/commit-analyzer/#default-rules-matching).
52
+
53
+ When a PR is merged, each of its commits that is releasable will be added to the release notes automatically.
54
+ The release version will be determined by the commit whose type represents the highest SemVer value.
@@ -0,0 +1,4 @@
1
+ export declare type Locale = string;
2
+ export declare type FormatterOptions = {
3
+ locale: Locale;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Formatter.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Formatter.types.js","sourceRoot":"","sources":["../../src/Formatter.types.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
- export { formatNumber, formatNumberToParts, truncateFraction, parseNumber, } from "./numbers/NumberUtils";
2
- export { formatCurrency, formatCurrencyToParts, parseCurrency, } from "./numbers/CurrencyUtils";
3
- export type { Locale, FormatterOptions, NumberFormatPart, CurrencyDisplay, CurrencySign, CurrencyOptions, } from "./numbers/NumberUtils.types";
1
+ export { NumberFormatter, formatNumber, formatNumberToParts, parseNumber, } from "./numbers/NumberFormatter";
2
+ export { CurrencyFormatter, formatCurrency, formatCurrencyToParts, parseCurrency, } from "./numbers/CurrencyFormatter";
3
+ export type { NumberOptions, NumberFormatPartTypes, NumberFormatPart, CurrencyDisplay, CurrencySign, CurrencyOptions, } from "./numbers/Numbers.types";
4
+ export type { Locale, FormatterOptions } from "./Formatter.types";
package/dist/src/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseCurrency = exports.formatCurrencyToParts = exports.formatCurrency = exports.parseNumber = exports.truncateFraction = exports.formatNumberToParts = exports.formatNumber = void 0;
4
- var NumberUtils_1 = require("./numbers/NumberUtils");
5
- Object.defineProperty(exports, "formatNumber", { enumerable: true, get: function () { return NumberUtils_1.formatNumber; } });
6
- Object.defineProperty(exports, "formatNumberToParts", { enumerable: true, get: function () { return NumberUtils_1.formatNumberToParts; } });
7
- Object.defineProperty(exports, "truncateFraction", { enumerable: true, get: function () { return NumberUtils_1.truncateFraction; } });
8
- Object.defineProperty(exports, "parseNumber", { enumerable: true, get: function () { return NumberUtils_1.parseNumber; } });
9
- var CurrencyUtils_1 = require("./numbers/CurrencyUtils");
10
- Object.defineProperty(exports, "formatCurrency", { enumerable: true, get: function () { return CurrencyUtils_1.formatCurrency; } });
11
- Object.defineProperty(exports, "formatCurrencyToParts", { enumerable: true, get: function () { return CurrencyUtils_1.formatCurrencyToParts; } });
12
- Object.defineProperty(exports, "parseCurrency", { enumerable: true, get: function () { return CurrencyUtils_1.parseCurrency; } });
3
+ exports.parseCurrency = exports.formatCurrencyToParts = exports.formatCurrency = exports.CurrencyFormatter = exports.parseNumber = exports.formatNumberToParts = exports.formatNumber = exports.NumberFormatter = void 0;
4
+ var NumberFormatter_1 = require("./numbers/NumberFormatter");
5
+ Object.defineProperty(exports, "NumberFormatter", { enumerable: true, get: function () { return NumberFormatter_1.NumberFormatter; } });
6
+ Object.defineProperty(exports, "formatNumber", { enumerable: true, get: function () { return NumberFormatter_1.formatNumber; } });
7
+ Object.defineProperty(exports, "formatNumberToParts", { enumerable: true, get: function () { return NumberFormatter_1.formatNumberToParts; } });
8
+ Object.defineProperty(exports, "parseNumber", { enumerable: true, get: function () { return NumberFormatter_1.parseNumber; } });
9
+ var CurrencyFormatter_1 = require("./numbers/CurrencyFormatter");
10
+ Object.defineProperty(exports, "CurrencyFormatter", { enumerable: true, get: function () { return CurrencyFormatter_1.CurrencyFormatter; } });
11
+ Object.defineProperty(exports, "formatCurrency", { enumerable: true, get: function () { return CurrencyFormatter_1.formatCurrency; } });
12
+ Object.defineProperty(exports, "formatCurrencyToParts", { enumerable: true, get: function () { return CurrencyFormatter_1.formatCurrencyToParts; } });
13
+ Object.defineProperty(exports, "parseCurrency", { enumerable: true, get: function () { return CurrencyFormatter_1.parseCurrency; } });
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAK+B;AAJ7B,2GAAA,YAAY,OAAA;AACZ,kHAAA,mBAAmB,OAAA;AACnB,+GAAA,gBAAgB,OAAA;AAChB,0GAAA,WAAW,OAAA;AAEb,yDAIiC;AAH/B,+GAAA,cAAc,OAAA;AACd,sHAAA,qBAAqB,OAAA;AACrB,8GAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,6DAKmC;AAJjC,kHAAA,eAAe,OAAA;AACf,+GAAA,YAAY,OAAA;AACZ,sHAAA,mBAAmB,OAAA;AACnB,8GAAA,WAAW,OAAA;AAEb,iEAKqC;AAJnC,sHAAA,iBAAiB,OAAA;AACjB,mHAAA,cAAc,OAAA;AACd,0HAAA,qBAAqB,OAAA;AACrB,kHAAA,aAAa,OAAA"}
@@ -0,0 +1,11 @@
1
+ import { CurrencyOptions, NumberFormatPart } from "./Numbers.types";
2
+ export declare class CurrencyFormatter {
3
+ formatter: Intl.NumberFormat;
4
+ constructor(currencyOptions: CurrencyOptions);
5
+ formatCurrency(value: number): string;
6
+ formatCurrencyToParts(value: number): NumberFormatPart[];
7
+ parseCurrency(value: string): number;
8
+ }
9
+ export declare function formatCurrency(value: number, currencyOptions: CurrencyOptions): string;
10
+ export declare function formatCurrencyToParts(value: number, currencyOptions: CurrencyOptions): NumberFormatPart[];
11
+ export declare function parseCurrency(value: string, currencyOptions: CurrencyOptions): number;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseCurrency = exports.formatCurrencyToParts = exports.formatCurrency = exports.CurrencyFormatter = void 0;
4
+ const CurrencyUtils_1 = require("./CurrencyUtils");
5
+ class CurrencyFormatter {
6
+ constructor(currencyOptions) {
7
+ this.formatter = (0, CurrencyUtils_1.getCurrencyFormatter)(currencyOptions);
8
+ }
9
+ formatCurrency(value) {
10
+ return this.formatter.format(value);
11
+ }
12
+ formatCurrencyToParts(value) {
13
+ return this.formatter.formatToParts(value);
14
+ }
15
+ parseCurrency(value) {
16
+ const control = this.formatCurrencyToParts(-1e9 + 0.1);
17
+ const group = control.find((prop) => prop.type === "group")?.value;
18
+ const decimal = control.find((prop) => prop.type === "decimal")?.value;
19
+ const currency = control.find((prop) => prop.type === "currency")?.value;
20
+ const minusSign = control.find((prop) => prop.type === "minusSign")?.value;
21
+ const literals = control
22
+ .filter((prop) => prop.type === "literal")
23
+ .map((literal) => literal.value);
24
+ const sign = (minusSign && value.includes(minusSign)) ||
25
+ value.includes("-") ||
26
+ value.includes("(")
27
+ ? -1
28
+ : 1;
29
+ const converted = literals
30
+ .reduce((val, literal) => val.replaceAll(literal, ""), value)
31
+ .replaceAll(group, "")
32
+ .replace(decimal, ".")
33
+ .replace(currency, "")
34
+ .replace(minusSign, "")
35
+ .replace("-", "")
36
+ .replaceAll(/\s/g, "")
37
+ .trim();
38
+ return parseFloat(converted) * sign;
39
+ }
40
+ }
41
+ exports.CurrencyFormatter = CurrencyFormatter;
42
+ function formatCurrency(value, currencyOptions) {
43
+ const formatter = new CurrencyFormatter(currencyOptions);
44
+ return formatter.formatCurrency(value);
45
+ }
46
+ exports.formatCurrency = formatCurrency;
47
+ function formatCurrencyToParts(value, currencyOptions) {
48
+ const formatter = new CurrencyFormatter(currencyOptions);
49
+ return formatter.formatCurrencyToParts(value);
50
+ }
51
+ exports.formatCurrencyToParts = formatCurrencyToParts;
52
+ function parseCurrency(value, currencyOptions) {
53
+ const formatter = new CurrencyFormatter(currencyOptions);
54
+ return formatter.parseCurrency(value);
55
+ }
56
+ exports.parseCurrency = parseCurrency;
57
+ //# sourceMappingURL=CurrencyFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyFormatter.js","sourceRoot":"","sources":["../../../src/numbers/CurrencyFormatter.ts"],"names":[],"mappings":"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"}
@@ -1,6 +1,2 @@
1
- import { CurrencyOptions, Locale, NumberFormatPart } from "./NumberUtils.types";
2
- export declare function formatterFactory(locale: Locale, options: Intl.NumberFormatOptions): Intl.NumberFormat;
3
- export declare function formatCurrency(value: number, currencyOptions: CurrencyOptions): string;
4
- export declare function formatCurrencyToParts(value: number, currencyOptions: CurrencyOptions): NumberFormatPart[];
5
- export declare function truncateFraction(value: number): number;
6
- export declare function parseCurrency(value: string, currencyOptions: CurrencyOptions): number;
1
+ import { CurrencyOptions } from "./Numbers.types";
2
+ export declare function getCurrencyFormatter(options: CurrencyOptions): Intl.NumberFormat;
@@ -1,65 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseCurrency = exports.truncateFraction = exports.formatCurrencyToParts = exports.formatCurrency = exports.formatterFactory = void 0;
3
+ exports.getCurrencyFormatter = void 0;
4
4
  const NumberUtils_1 = require("./NumberUtils");
5
- function formatterFactory(locale, options) {
6
- try {
7
- return new Intl.NumberFormat(locale, options);
8
- }
9
- catch (error) {
10
- if (error instanceof Error) {
11
- if (error.message.includes("Incorrect locale information provided")) {
12
- console.error(`@procore/globalization-toolkit Intl.NumberFormat error for locale ${locale}. Will fall back to en-US`, error);
13
- return formatterFactory("en-US", options);
14
- }
15
- else if (error.message.includes("Invalid currency code")) {
16
- console.error(`@procore/globalization-toolkit Intl.NumberFormat error for currency ${options?.currency}. Will fall back to USD`, error);
17
- options.currency = "USD";
18
- return formatterFactory(locale, options);
19
- }
20
- }
21
- options.currency = "USD";
22
- return formatterFactory("en-US", options);
23
- }
5
+ function getCurrencyFormatter(options) {
6
+ const intlOptions = (0, NumberUtils_1.transformOptions)(options);
7
+ return new Intl.NumberFormat(options.locale, intlOptions);
24
8
  }
25
- exports.formatterFactory = formatterFactory;
26
- function formatCurrency(value, currencyOptions) {
27
- const formatter = formatterFactory(currencyOptions.locale, (0, NumberUtils_1.transformOptions)(currencyOptions));
28
- return formatter.format(value);
29
- }
30
- exports.formatCurrency = formatCurrency;
31
- function formatCurrencyToParts(value, currencyOptions) {
32
- return (0, NumberUtils_1.formatToParts)(value, currencyOptions);
33
- }
34
- exports.formatCurrencyToParts = formatCurrencyToParts;
35
- function truncateFraction(value) {
36
- return Math.trunc(value);
37
- }
38
- exports.truncateFraction = truncateFraction;
39
- function parseCurrency(value, currencyOptions) {
40
- const control = formatCurrencyToParts(-1e9 + 0.1, currencyOptions);
41
- const group = control.find((prop) => prop.type === "group")?.value;
42
- const decimal = control.find((prop) => prop.type === "decimal")?.value;
43
- const currency = control.find((prop) => prop.type === "currency")?.value;
44
- const minusSign = control.find((prop) => prop.type === "minusSign")?.value;
45
- const literals = control
46
- .filter((prop) => prop.type === "literal")
47
- .map((literal) => literal.value);
48
- const sign = (minusSign && value.includes(minusSign)) ||
49
- value.includes("-") ||
50
- value.includes("(")
51
- ? -1
52
- : 1;
53
- const converted = literals
54
- .reduce((val, literal) => val.replaceAll(literal, ""), value)
55
- .replaceAll(group, "")
56
- .replace(decimal, ".")
57
- .replace(currency, "")
58
- .replace(minusSign, "")
59
- .replace("-", "")
60
- .replaceAll(/\s/g, "")
61
- .trim();
62
- return parseFloat(converted) * sign;
63
- }
64
- exports.parseCurrency = parseCurrency;
9
+ exports.getCurrencyFormatter = getCurrencyFormatter;
65
10
  //# sourceMappingURL=CurrencyUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyUtils.js","sourceRoot":"","sources":["../../../src/numbers/CurrencyUtils.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"CurrencyUtils.js","sourceRoot":"","sources":["../../../src/numbers/CurrencyUtils.ts"],"names":[],"mappings":";;;AAGA,+CAAiD;AAGjD,SAAgB,oBAAoB,CAClC,OAAwB;IAExB,MAAM,WAAW,GAA6B,IAAA,8BAAgB,EAAC,OAAO,CAAC,CAAC;IAExE,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC5D,CAAC;AAND,oDAMC"}
@@ -0,0 +1,11 @@
1
+ import { NumberOptions, NumberFormatPart } from "./Numbers.types";
2
+ export declare class NumberFormatter {
3
+ formatter: Intl.NumberFormat;
4
+ constructor(numberOptions: NumberOptions);
5
+ formatNumber(value: number): string;
6
+ formatNumberToParts(value: number): NumberFormatPart[];
7
+ parseNumber(value: string): number;
8
+ }
9
+ export declare function formatNumber(value: number, numberOptions: NumberOptions): string;
10
+ export declare function formatNumberToParts(value: number, numberOptions: NumberOptions): NumberFormatPart[];
11
+ export declare function parseNumber(value: string, numberOptions: NumberOptions): number;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseNumber = exports.formatNumberToParts = exports.formatNumber = exports.NumberFormatter = void 0;
4
+ const NumberUtils_1 = require("./NumberUtils");
5
+ class NumberFormatter {
6
+ constructor(numberOptions) {
7
+ this.formatter = (0, NumberUtils_1.getNumberFormatter)(numberOptions);
8
+ }
9
+ formatNumber(value) {
10
+ return this.formatter.format(value);
11
+ }
12
+ formatNumberToParts(value) {
13
+ return this.formatter.formatToParts(value);
14
+ }
15
+ parseNumber(value) {
16
+ const control = this.formatNumberToParts(1e9 + 0.1);
17
+ const group = control.find((prop) => prop.type === "group")?.value;
18
+ const decimal = control.find((prop) => prop.type === "decimal")?.value;
19
+ return parseFloat(value.replace(group, "").replace(decimal, "."));
20
+ }
21
+ }
22
+ exports.NumberFormatter = NumberFormatter;
23
+ function formatNumber(value, numberOptions) {
24
+ const formatter = new NumberFormatter(numberOptions);
25
+ return formatter.formatNumber(value);
26
+ }
27
+ exports.formatNumber = formatNumber;
28
+ function formatNumberToParts(value, numberOptions) {
29
+ const formatter = new NumberFormatter(numberOptions);
30
+ return formatter.formatNumberToParts(value);
31
+ }
32
+ exports.formatNumberToParts = formatNumberToParts;
33
+ function parseNumber(value, numberOptions) {
34
+ const formatter = new NumberFormatter(numberOptions);
35
+ return formatter.parseNumber(value);
36
+ }
37
+ exports.parseNumber = parseNumber;
38
+ //# sourceMappingURL=NumberFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberFormatter.js","sourceRoot":"","sources":["../../../src/numbers/NumberFormatter.ts"],"names":[],"mappings":";;;AAAA,+CAAmD;AAGnD,MAAa,eAAe;IAM1B,YAAY,aAA4B;QACtC,IAAI,CAAC,SAAS,GAAG,IAAA,gCAAkB,EAAC,aAAa,CAAC,CAAC;IACrD,CAAC;IAOD,YAAY,CAAC,KAAa;QACxB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAOD,mBAAmB,CAAC,KAAa;QAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IAOD,WAAW,CAAC,KAAa;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;QACpD,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,EAAE,KAAK,CAAC;QACnE,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,EAAE,KAAK,CAAC;QAGvE,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,KAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;IACtE,CAAC;CACF;AAzCD,0CAyCC;AASD,SAAgB,YAAY,CAC1B,KAAa,EACb,aAA4B;IAE5B,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,CAAC;IACrD,OAAO,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC;AAND,oCAMC;AASD,SAAgB,mBAAmB,CACjC,KAAa,EACb,aAA4B;IAE5B,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,CAAC;IACrD,OAAO,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AAND,kDAMC;AASD,SAAgB,WAAW,CACzB,KAAa,EACb,aAA4B;IAE5B,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,CAAC;IACrD,OAAO,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAND,kCAMC"}
@@ -1,8 +1,3 @@
1
- import { CurrencyOptions, FormatterOptions, Locale, NumberFormatPart } from "./NumberUtils.types";
2
- export declare function numberFormatterFactory(locale: Locale, options?: Intl.NumberFormatOptions): Intl.NumberFormat;
3
- export declare function formatNumber(value: number, formatterOptions: FormatterOptions): string;
4
- export declare function transformOptions(options: FormatterOptions | CurrencyOptions): Intl.NumberFormatOptions;
5
- export declare function formatNumberToParts(value: number, formatterOptions: FormatterOptions): NumberFormatPart[];
6
- export declare function formatToParts<Type extends FormatterOptions>(value: number, formatterOptions: Type): NumberFormatPart[];
7
- export declare function truncateFraction(value: number): number;
8
- export declare function parseNumber(value: string, formatterOptions: FormatterOptions): number;
1
+ import { CurrencyOptions, NumberOptions } from "./Numbers.types";
2
+ export declare function getNumberFormatter(options: NumberOptions | CurrencyOptions): Intl.NumberFormat;
3
+ export declare function transformOptions(options: NumberOptions | CurrencyOptions): Intl.NumberFormatOptions;
@@ -1,25 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseNumber = exports.truncateFraction = exports.formatToParts = exports.formatNumberToParts = exports.transformOptions = exports.formatNumber = exports.numberFormatterFactory = void 0;
4
- const NumberUtils_types_1 = require("./NumberUtils.types");
5
- function numberFormatterFactory(locale, options) {
6
- try {
7
- return new Intl.NumberFormat(locale, options);
8
- }
9
- catch (error) {
10
- console.error(`@procore/globalization-toolkit Intl.NumberFormat error for locale ${locale}. Will fall back to en-US`, error);
11
- return numberFormatterFactory("en-US", options);
12
- }
3
+ exports.transformOptions = exports.getNumberFormatter = void 0;
4
+ const Numbers_types_1 = require("./Numbers.types");
5
+ function getNumberFormatter(options) {
6
+ const intlOptions = transformOptions(options);
7
+ return new Intl.NumberFormat(options.locale, intlOptions);
13
8
  }
14
- exports.numberFormatterFactory = numberFormatterFactory;
15
- function formatNumber(value, formatterOptions) {
16
- const formatter = numberFormatterFactory(formatterOptions.locale);
17
- return formatter.format(value);
18
- }
19
- exports.formatNumber = formatNumber;
9
+ exports.getNumberFormatter = getNumberFormatter;
20
10
  function transformOptions(options) {
21
11
  const numberFormatOptions = {};
22
- if ((0, NumberUtils_types_1.isCurrencyOptions)(options)) {
12
+ if ((0, Numbers_types_1.isCurrencyOptions)(options)) {
23
13
  numberFormatOptions.style = "currency";
24
14
  numberFormatOptions.currency = options.currencyIsoCode;
25
15
  numberFormatOptions.currencyDisplay = options.currencyDisplay;
@@ -28,25 +18,4 @@ function transformOptions(options) {
28
18
  return numberFormatOptions;
29
19
  }
30
20
  exports.transformOptions = transformOptions;
31
- function formatNumberToParts(value, formatterOptions) {
32
- return formatToParts(value, formatterOptions);
33
- }
34
- exports.formatNumberToParts = formatNumberToParts;
35
- function formatToParts(value, formatterOptions) {
36
- const options = transformOptions(formatterOptions);
37
- const formatter = numberFormatterFactory(formatterOptions.locale, options);
38
- return formatter.formatToParts(value);
39
- }
40
- exports.formatToParts = formatToParts;
41
- function truncateFraction(value) {
42
- return Math.trunc(value);
43
- }
44
- exports.truncateFraction = truncateFraction;
45
- function parseNumber(value, formatterOptions) {
46
- const control = formatNumberToParts(1e9 + 0.1, formatterOptions);
47
- const group = control.find((prop) => prop.type === "group")?.value;
48
- const decimal = control.find((prop) => prop.type === "decimal")?.value;
49
- return parseFloat(value.replace(group, "").replace(decimal, "."));
50
- }
51
- exports.parseNumber = parseNumber;
52
21
  //# sourceMappingURL=NumberUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumberUtils.js","sourceRoot":"","sources":["../../../src/numbers/NumberUtils.ts"],"names":[],"mappings":";;;AAAA,2DAM6B;AAE7B,SAAgB,sBAAsB,CACpC,MAAc,EACd,OAAkC;IAElC,IAAI;QACF,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/C;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CACX,qEAAqE,MAAM,2BAA2B,EACtG,KAAK,CACN,CAAC;QACF,OAAO,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;KACjD;AACH,CAAC;AAbD,wDAaC;AAQD,SAAgB,YAAY,CAC1B,KAAa,EACb,gBAAkC;IAElC,MAAM,SAAS,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAClE,OAAO,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAND,oCAMC;AAED,SAAgB,gBAAgB,CAC9B,OAA2C;IAE3C,MAAM,mBAAmB,GAA6B,EAAE,CAAC;IAEzD,IAAI,IAAA,qCAAiB,EAAC,OAAO,CAAC,EAAE;QAC9B,mBAAmB,CAAC,KAAK,GAAG,UAAU,CAAC;QACvC,mBAAmB,CAAC,QAAQ,GAAG,OAAO,CAAC,eAAe,CAAC;QACvD,mBAAmB,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC9D,mBAAmB,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;KACzD;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAbD,4CAaC;AAQD,SAAgB,mBAAmB,CACjC,KAAa,EACb,gBAAkC;IAElC,OAAO,aAAa,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;AAChD,CAAC;AALD,kDAKC;AAED,SAAgB,aAAa,CAC3B,KAAa,EACb,gBAAsB;IAEtB,MAAM,OAAO,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IACnD,MAAM,SAAS,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3E,OAAO,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AAPD,sCAOC;AAOD,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAFD,4CAEC;AAQD,SAAgB,WAAW,CACzB,KAAa,EACb,gBAAkC;IAElC,MAAM,OAAO,GAAG,mBAAmB,CAAC,GAAG,GAAG,GAAG,EAAE,gBAAgB,CAAC,CAAC;IACjE,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,EAAE,KAAK,CAAC;IACnE,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,EAAE,KAAK,CAAC;IAGvE,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,KAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;AACtE,CAAC;AAVD,kCAUC"}
1
+ {"version":3,"file":"NumberUtils.js","sourceRoot":"","sources":["../../../src/numbers/NumberUtils.ts"],"names":[],"mappings":";;;AAAA,mDAIyB;AAEzB,SAAgB,kBAAkB,CAChC,OAAwC;IAGxC,MAAM,WAAW,GAA6B,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAExE,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC5D,CAAC;AAPD,gDAOC;AAED,SAAgB,gBAAgB,CAC9B,OAAwC;IAExC,MAAM,mBAAmB,GAA6B,EAAE,CAAC;IAEzD,IAAI,IAAA,iCAAiB,EAAC,OAAO,CAAC,EAAE;QAC9B,mBAAmB,CAAC,KAAK,GAAG,UAAU,CAAC;QACvC,mBAAmB,CAAC,QAAQ,GAAG,OAAO,CAAC,eAAe,CAAC;QACvD,mBAAmB,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC9D,mBAAmB,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;KACzD;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAbD,4CAaC"}
@@ -0,0 +1,20 @@
1
+ import { FormatterOptions } from "src";
2
+ export declare type NumberOptions = FormatterOptions;
3
+ declare type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
4
+ declare type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
5
+ export declare type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
6
+ export declare type NumberFormatPart = {
7
+ type: NumberFormatPartTypes;
8
+ value: string;
9
+ };
10
+ declare const currencyDisplayValues: readonly ["symbol", "narrowSymbol", "code", "name"];
11
+ export declare type CurrencyDisplay = typeof currencyDisplayValues[number];
12
+ declare const currencySignValues: readonly ["accounting", "standard"];
13
+ export declare type CurrencySign = typeof currencySignValues[number];
14
+ export interface CurrencyOptions extends NumberOptions {
15
+ currencyIsoCode: string;
16
+ currencyDisplay?: CurrencyDisplay;
17
+ currencySign?: CurrencySign;
18
+ }
19
+ export declare function isCurrencyOptions(options: NumberOptions | CurrencyOptions): options is CurrencyOptions;
20
+ export {};
@@ -12,4 +12,4 @@ function isCurrencyOptions(options) {
12
12
  return options.currencyIsoCode !== undefined;
13
13
  }
14
14
  exports.isCurrencyOptions = isCurrencyOptions;
15
- //# sourceMappingURL=NumberUtils.types.js.map
15
+ //# sourceMappingURL=Numbers.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Numbers.types.js","sourceRoot":"","sources":["../../../src/numbers/Numbers.types.ts"],"names":[],"mappings":";;;AAmDA,MAAM,qBAAqB,GAAG;IAC5B,QAAQ;IACR,cAAc;IACd,MAAM;IACN,MAAM;CACE,CAAC;AAGX,MAAM,kBAAkB,GAAG,CAAC,YAAY,EAAE,UAAU,CAAU,CAAC;AAS/D,SAAgB,iBAAiB,CAC/B,OAAwC;IAExC,OAAQ,OAA2B,CAAC,eAAe,KAAK,SAAS,CAAC;AACpE,CAAC;AAJD,8CAIC"}
@@ -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.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.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.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../commitlint.config.js","../src/numbers/NumberUtils.types.ts","../src/numbers/NumberUtils.ts","../src/numbers/CurrencyUtils.ts","../src/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.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/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.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/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.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/chalk/index.d.ts","../node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.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/jest-matcher-utils/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3f149f903dd20dfeb7c80e228b659f0e436532de772469980dbd00702cc05cc1","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","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":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},{"version":"f59c049b2d71703d12dabd28da6708923d642882cd862083ddf14c737ce569ec","signature":"69ab7100906a4ed0ad331ee20d92ada7266f29d7e7c178fca8a8ed7deb345c6b"},{"version":"bd6fdb957ecd972e5ef2b8af1707ce44586d6f70b649bb9f503a6ea042d60ba8","signature":"ddbcad7353975a4f8c10995bd5202ce00d5d322d4d056c85b72a8cab7263e535"},{"version":"6fa8aec5400fee1bb54467a3090e585ee1a9b90b056977e092e8b51ea69ed6e1","signature":"cc6b271d1316fcee79ef350a8fad226243acac31a0eb5647c89bae6a38036b45"},{"version":"054f17f66662b7e1ed908da4e4fc1401e375350918eb90693faf917d9629f3f8","signature":"43eea2d53c5950762a15bd5c7f4c1e4f37406446cb0a92d3c089da9e963c07e4"},{"version":"e0c0f6220b8b45f7be73d8aec3b9b4ea0613f2385b5ff0042e83fa5b577de8c0","signature":"0ef100236de0ebea5d350fc98d2ee3e68a1308f6dd3c557d617e68534499633e"},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"3e4624c306340ad303cc536a07004e81336c3f088308a9e4a9f4c957a3cda2fd","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","025fc13211ed47d2798269017af3ec869122a050d5431a6ad3c1997900e65c58","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"249a2b90439cdfd51709539fbfa4dfe0791cbae6efce1e9b327ba8f8cd703f49","affectsGlobalScope":true},"40b991dc3365179e1365643589e168d7ea0588b4dd5bbb3a974ffefa7cb05e7f","bf057bb805c5e1c0e795ac7c759d40ebbe0e9894df9be3413bbdd8d1a2fc229e","74f2bb83d1ccf390f48681be57a30c09e85b4c7a801267746e382b2386fc667e","7bac475dcdd9f7e4e9da934d32c305bc889c4ce3c8ac0ef45a93a8d670fff607","5d357e7965026197a3152fa4e990fa7a4cbaf1578a17dff920ff1a71a325e198","8acf99b1c8682276a63ea5bb68433782715892726b97e4604a415e4e56bce41c",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"3b145a2351f5cf16abf999c8d5f4481c74dffdc54ec1e9a89992e2622e1226c5","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","d270fd4b565eda11a0a737c181892316b7a1ace06c7988d0246219c3df11db06","70caef0271088abc5f5ae7ff6d84421d35bb192b690fbaa1b2ecf2b0ef01deb6",{"version":"59a638a504490fecaacf0020b9814b6abee37edb66047eb1ab9f7c2274bf1da0","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","8c4c1a64db28930732033c31418f817dcb9d09d706766707ae6d38f23faf0c53","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","12a70315c8281e46d65696086dd25827408e967b305a22276ae2779fe519e0fe","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","29d613c3964ea75b2b4e0d17098245c34529282e9cc72b7e4eeb2a7b12c27cb7",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","a381f079c4804442f179d742fdb2e495fe28d67a47cac673485f75ae2e77aeca","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2af17363f8a062e3a8cd1b26030af0058b3f86e783f4fc6aa9f57247f240ebaa","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","dfe08140492cdc135fb7fd9c4a652c05207b61a436906079b87da1d3111314bf","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","089e1f8603cbc35ab977c8dcc662eb754b82fca32ed1dfb16bd682726c2d5432","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"82fc37849846a3a0264047621d5beb6ce2ddeb2f83bdee2c79523af3c3282d97","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"ccfd8774cd9b929f63ff7dcf657977eb0652e3547f1fcac1b3a1dc5db22d4d58","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":7},"fileIdsList":[[103],[103,114,119],[59,103],[62,103],[63,68,103],[64,74,75,82,91,102,103],[64,65,74,82,103],[66,103],[67,68,75,83,103],[68,91,99,103],[69,71,74,82,103],[70,103],[71,72,103],[73,74,103],[74,103],[74,75,76,91,102,103],[74,75,76,91,94,103],[103,107],[77,82,91,102,103],[74,75,77,78,82,91,99,102,103],[77,79,91,99,102,103],[59,60,61,62,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,106,107,108,109],[74,80,103],[81,102,103],[71,74,82,91,103],[83,103],[84,103],[62,85,103],[86,101,103,107],[87,103],[88,103],[74,89,103],[89,90,103,105],[74,91,92,93,94,103],[91,93,103],[91,92,103],[94,103],[95,103],[74,97,98,103],[97,98,103],[68,82,91,99,103],[100,103],[82,101,103],[63,77,88,102,103],[68,103],[91,103,104],[103,105],[103,106],[63,68,74,76,85,91,102,103,105,107],[91,103,108],[103,112,115],[103,112,115,116,117],[103,114],[103,111,118],[103,113],[55,56,57,103],[55,56,103],[55,103],[55,56,57],[55]],"referencedMap":[[54,1],[120,2],[59,3],[60,3],[62,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,13],[73,14],[74,15],[75,16],[76,17],[61,18],[109,1],[77,19],[78,20],[79,21],[110,22],[80,23],[81,24],[82,25],[83,26],[84,27],[85,28],[86,29],[87,30],[88,31],[89,32],[90,33],[91,34],[93,35],[92,36],[94,37],[95,38],[96,1],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[111,1],[112,1],[116,51],[118,52],[117,51],[115,53],[119,54],[114,55],[113,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[8,1],[47,1],[44,1],[45,1],[46,1],[48,1],[9,1],[49,1],[50,1],[51,1],[52,1],[1,1],[10,1],[53,1],[58,56],[57,57],[56,58],[55,1]],"exportedModulesMap":[[120,2],[59,3],[60,3],[62,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,13],[73,14],[74,15],[75,16],[76,17],[61,18],[109,1],[77,19],[78,20],[79,21],[110,22],[80,23],[81,24],[82,25],[83,26],[84,27],[85,28],[86,29],[87,30],[88,31],[89,32],[90,33],[91,34],[93,35],[92,36],[94,37],[95,38],[96,1],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[111,1],[112,1],[116,51],[118,52],[117,51],[115,53],[119,54],[114,55],[113,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[8,1],[47,1],[44,1],[45,1],[46,1],[48,1],[9,1],[49,1],[50,1],[51,1],[52,1],[1,1],[10,1],[53,1],[58,59],[57,60],[56,60]],"semanticDiagnosticsPerFile":[54,120,59,60,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,61,109,77,78,79,110,80,81,82,83,84,85,86,87,88,89,90,91,93,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,111,112,116,118,117,115,119,114,113,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,52,1,10,53,58,57,56,55]},"version":"4.7.3"}
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.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.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.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../commitlint.config.js","../src/Formatter.types.ts","../src/numbers/Numbers.types.ts","../src/numbers/NumberUtils.ts","../src/numbers/NumberFormatter.ts","../src/numbers/CurrencyUtils.ts","../src/numbers/CurrencyFormatter.ts","../src/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.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/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.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/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.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/chalk/index.d.ts","../node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.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/jest-matcher-utils/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3f149f903dd20dfeb7c80e228b659f0e436532de772469980dbd00702cc05cc1","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","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":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},{"version":"f59c049b2d71703d12dabd28da6708923d642882cd862083ddf14c737ce569ec","signature":"69ab7100906a4ed0ad331ee20d92ada7266f29d7e7c178fca8a8ed7deb345c6b"},{"version":"9b59c27b4ef90cbb4a98cbc3d444d85725658f904490ccc45e385304d1a6690e","signature":"d491049d09e2052f8e93416b892c5de684e633799f42c1116739793d49e09582"},{"version":"366136aae8ba03c2b14dcb6af3e0136f6bebc8a2e9c77df7effc9231c4b2ec17","signature":"abdae647e93bf94144026e674a3f7a16d773bac7f0936893de63b6a9001c53da"},{"version":"6eb854397d7d4a0b5128d1cfec00792036cb0be73c2159b80d383361bb207d0a","signature":"9eaeeff7865040b7a0df533aa7d169141d649294fee9038794f4fa951eee89bd"},{"version":"2735be437e9417055be581088371f52ccb0696ab930dcc294bdc918f7ffb1f4d","signature":"b2dfc07de2ad834d084fa440c9cd5e8215c05d2a86895394946c9080ee9c6667"},{"version":"21636b0e3cfd78946194a55dd677189663837de7ca2ffe2730154819cdf58599","signature":"81ea53f1cd852ffaf5e574567f90ef3eb30dff6bbd29999394a54bab9782ca0c"},{"version":"0911f2c96ccc03b399e327d1b4c75df5355c6a0227511fdc60b66e2f0c00156e","signature":"d72f1d7a14238d56533a54813eb97cf04447f5e5ccec3a48d426a8eabae03b28"},{"version":"a50a1ad95406a588f9fe9693ac1c835f15bf2bdb7be2a1f4191d75d6acf1cc8a","signature":"d8913d2c01b5469c8e29e9a5c35007c0d00e307cb4154e4bbb9b5b23aa9ed0d1"},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"3e4624c306340ad303cc536a07004e81336c3f088308a9e4a9f4c957a3cda2fd","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","025fc13211ed47d2798269017af3ec869122a050d5431a6ad3c1997900e65c58","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"249a2b90439cdfd51709539fbfa4dfe0791cbae6efce1e9b327ba8f8cd703f49","affectsGlobalScope":true},"40b991dc3365179e1365643589e168d7ea0588b4dd5bbb3a974ffefa7cb05e7f","bf057bb805c5e1c0e795ac7c759d40ebbe0e9894df9be3413bbdd8d1a2fc229e","74f2bb83d1ccf390f48681be57a30c09e85b4c7a801267746e382b2386fc667e","7bac475dcdd9f7e4e9da934d32c305bc889c4ce3c8ac0ef45a93a8d670fff607","5d357e7965026197a3152fa4e990fa7a4cbaf1578a17dff920ff1a71a325e198","8acf99b1c8682276a63ea5bb68433782715892726b97e4604a415e4e56bce41c",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"3b145a2351f5cf16abf999c8d5f4481c74dffdc54ec1e9a89992e2622e1226c5","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","d270fd4b565eda11a0a737c181892316b7a1ace06c7988d0246219c3df11db06","70caef0271088abc5f5ae7ff6d84421d35bb192b690fbaa1b2ecf2b0ef01deb6",{"version":"59a638a504490fecaacf0020b9814b6abee37edb66047eb1ab9f7c2274bf1da0","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","8c4c1a64db28930732033c31418f817dcb9d09d706766707ae6d38f23faf0c53","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","12a70315c8281e46d65696086dd25827408e967b305a22276ae2779fe519e0fe","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","29d613c3964ea75b2b4e0d17098245c34529282e9cc72b7e4eeb2a7b12c27cb7",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","a381f079c4804442f179d742fdb2e495fe28d67a47cac673485f75ae2e77aeca","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2af17363f8a062e3a8cd1b26030af0058b3f86e783f4fc6aa9f57247f240ebaa","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","dfe08140492cdc135fb7fd9c4a652c05207b61a436906079b87da1d3111314bf","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","089e1f8603cbc35ab977c8dcc662eb754b82fca32ed1dfb16bd682726c2d5432","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"82fc37849846a3a0264047621d5beb6ce2ddeb2f83bdee2c79523af3c3282d97","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"ccfd8774cd9b929f63ff7dcf657977eb0652e3547f1fcac1b3a1dc5db22d4d58","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":7},"fileIdsList":[[106],[106,117,122],[62,106],[65,106],[66,71,106],[67,77,78,85,94,105,106],[67,68,77,85,106],[69,106],[70,71,78,86,106],[71,94,102,106],[72,74,77,85,106],[73,106],[74,75,106],[76,77,106],[77,106],[77,78,79,94,105,106],[77,78,79,94,97,106],[106,110],[80,85,94,105,106],[77,78,80,81,85,94,102,105,106],[80,82,94,102,105,106],[62,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,106,107,108,109,110,111,112],[77,83,106],[84,105,106],[74,77,85,94,106],[86,106],[87,106],[65,88,106],[89,104,106,110],[90,106],[91,106],[77,92,106],[92,93,106,108],[77,94,95,96,97,106],[94,96,106],[94,95,106],[97,106],[98,106],[77,100,101,106],[100,101,106],[71,85,94,102,106],[103,106],[85,104,106],[66,80,91,105,106],[71,106],[94,106,107],[106,108],[106,109],[66,71,77,79,88,94,105,106,108,110],[94,106,111],[106,115,118],[106,115,118,119,120],[106,117],[106,114,121],[106,116],[55,56,58,60,106],[56,59,106],[56,57,106],[56,106],[61,106],[55,56,58,60],[56],[61]],"referencedMap":[[54,1],[123,2],[62,3],[63,3],[65,4],[66,5],[67,6],[68,7],[69,8],[70,9],[71,10],[72,11],[73,12],[74,13],[75,13],[76,14],[77,15],[78,16],[79,17],[64,18],[112,1],[80,19],[81,20],[82,21],[113,22],[83,23],[84,24],[85,25],[86,26],[87,27],[88,28],[89,29],[90,30],[91,31],[92,32],[93,33],[94,34],[96,35],[95,36],[97,37],[98,38],[99,1],[100,39],[101,40],[102,41],[103,42],[104,43],[105,44],[106,45],[107,46],[108,47],[109,48],[110,49],[111,50],[114,1],[115,1],[119,51],[121,52],[120,51],[118,53],[122,54],[117,55],[116,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[8,1],[47,1],[44,1],[45,1],[46,1],[48,1],[9,1],[49,1],[50,1],[51,1],[52,1],[1,1],[10,1],[53,1],[55,1],[61,56],[60,57],[59,58],[58,58],[57,59],[56,60]],"exportedModulesMap":[[123,2],[62,3],[63,3],[65,4],[66,5],[67,6],[68,7],[69,8],[70,9],[71,10],[72,11],[73,12],[74,13],[75,13],[76,14],[77,15],[78,16],[79,17],[64,18],[112,1],[80,19],[81,20],[82,21],[113,22],[83,23],[84,24],[85,25],[86,26],[87,27],[88,28],[89,29],[90,30],[91,31],[92,32],[93,33],[94,34],[96,35],[95,36],[97,37],[98,38],[99,1],[100,39],[101,40],[102,41],[103,42],[104,43],[105,44],[106,45],[107,46],[108,47],[109,48],[110,49],[111,50],[114,1],[115,1],[119,51],[121,52],[120,51],[118,53],[122,54],[117,55],[116,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[8,1],[47,1],[44,1],[45,1],[46,1],[48,1],[9,1],[49,1],[50,1],[51,1],[52,1],[1,1],[10,1],[53,1],[61,61],[60,62],[59,62],[58,62],[57,62],[56,63]],"semanticDiagnosticsPerFile":[54,123,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,64,112,80,81,82,113,83,84,85,86,87,88,89,90,91,92,93,94,96,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,114,115,119,121,120,118,122,117,116,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,52,1,10,53,55,61,60,59,58,57,56]},"version":"4.7.3"}
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@procore/globalization-toolkit",
3
- "version": "0.1.0",
4
3
  "description": "",
5
4
  "main": "./dist/index.js",
6
5
  "types": "./dist/index.d.ts",
@@ -14,15 +13,20 @@
14
13
  "lint:check": "eslint \"src/**/*.ts\"",
15
14
  "test": "jest"
16
15
  },
17
- "author": "",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/procore/globalization-toolkit.git"
19
+ },
20
+ "publishConfig": {
21
+ "registry": "https://registry.npmjs.org/",
22
+ "tag": "latest"
23
+ },
18
24
  "license": "ISC",
19
25
  "devDependencies": {
20
26
  "@commitlint/cli": "^17.0.2",
21
27
  "@commitlint/config-conventional": "^17.0.2",
22
28
  "@types/jest": "^27.5.2",
23
29
  "@types/node": "^18.0.0",
24
- "jest": "^28.1.0",
25
- "ts-jest": "^28.0.5",
26
30
  "@typescript-eslint/eslint-plugin": "^5.28.0",
27
31
  "@typescript-eslint/parser": "^5.28.0",
28
32
  "commitizen": "^4.2.4",
@@ -33,11 +37,43 @@
33
37
  "husky": "^8.0.1",
34
38
  "jest": "^28.1.0",
35
39
  "prettier": "^2.7.0",
40
+ "semantic-release": "^19.0.3",
41
+ "ts-jest": "^28.0.5",
36
42
  "ts-node": "^10.7.0"
37
43
  },
38
44
  "config": {
39
45
  "commitizen": {
40
46
  "path": "./node_modules/cz-conventional-changelog"
41
47
  }
42
- }
48
+ },
49
+ "release": {
50
+ "branches": [
51
+ "main"
52
+ ],
53
+ "repositoryUrl": "git@github.com:procore/globalization-toolkit.git",
54
+ "plugins": [
55
+ [
56
+ "@semantic-release/commit-analyzer",
57
+ {
58
+ "preset": "conventionalcommits",
59
+ "releaseRules": [
60
+ {
61
+ "type": "build",
62
+ "scope": "deps-dev",
63
+ "release": false
64
+ },
65
+ {
66
+ "type": "build",
67
+ "scope": "deps",
68
+ "release": "patch"
69
+ }
70
+ ]
71
+ }
72
+ ],
73
+ "@semantic-release/release-notes-generator",
74
+ "@semantic-release/npm",
75
+ "@semantic-release/github"
76
+ ]
77
+ },
78
+ "version": "0.3.0"
43
79
  }
@@ -1,19 +0,0 @@
1
- export declare type Locale = string;
2
- export declare type FormatterOptions = {
3
- locale: Locale;
4
- };
5
- export declare type NumberFormatPart = {
6
- type: string;
7
- value: string;
8
- };
9
- declare const currencyDisplayValues: readonly ["symbol", "narrowSymbol", "code", "name"];
10
- export declare type CurrencyDisplay = typeof currencyDisplayValues[number];
11
- declare const currencySignValues: readonly ["accounting", "standard"];
12
- export declare type CurrencySign = typeof currencySignValues[number];
13
- export interface CurrencyOptions extends FormatterOptions {
14
- currencyIsoCode: string;
15
- currencyDisplay?: CurrencyDisplay;
16
- currencySign?: CurrencySign;
17
- }
18
- export declare function isCurrencyOptions(options: FormatterOptions | CurrencyOptions): options is CurrencyOptions;
19
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberUtils.types.js","sourceRoot":"","sources":["../../../src/numbers/NumberUtils.types.ts"],"names":[],"mappings":";;;AAyBA,MAAM,qBAAqB,GAAG;IAC5B,QAAQ;IACR,cAAc;IACd,MAAM;IACN,MAAM;CACE,CAAC;AAGX,MAAM,kBAAkB,GAAG,CAAC,YAAY,EAAE,UAAU,CAAU,CAAC;AAS/D,SAAgB,iBAAiB,CAC/B,OAA2C;IAE3C,OAAQ,OAA2B,CAAC,eAAe,KAAK,SAAS,CAAC;AACpE,CAAC;AAJD,8CAIC"}