From 0838c40e718d1f3c40610bb524145bb32fcf0f48 Mon Sep 17 00:00:00 2001 From: Rastislav Date: Wed, 24 Apr 2024 14:12:27 +0200 Subject: [PATCH] Fix --- dist/index.js | 2 +- package.json | 8 +++----- src/index.ts | 2 +- test/roundNumber.test.ts | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9ab3265..c1722ed 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,6 +1,6 @@ class ExchNumberFormat { constructor(locales, options = {}) { - this.version = '1.1.2'; + this.version = '1.1.3'; this.replacer = 'XYZ'; this.totalCurrencyData = {}; this.totalAliases = {}; diff --git a/package.json b/package.json index 1a62314..1cbc6d4 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "exchange-rounding", - "version": "1.1.2", + "version": "1.1.3", "description": "Exchange Number Formatting", "main": "dist/index.js", + "types": "dist/index.d.ts", "type": "module", "scripts": { "test": "jest", @@ -47,9 +48,6 @@ "node": ">=13.2.0" }, "exports": { - ".": { - "import": "./dist/index.js", - "types": "./dist/index.d.ts" - } + ".": "./dist/index.js" } } diff --git a/src/index.ts b/src/index.ts index 2c41043..3b5421f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ interface RoundNumberOptions extends Intl.NumberFormatOptions { } class ExchNumberFormat { - version: string = '1.1.2'; + version: string = '1.1.3'; private replacer: string = 'XYZ'; private formatter!: Intl.NumberFormat; private intlOptions: RoundNumberOptions; diff --git a/test/roundNumber.test.ts b/test/roundNumber.test.ts index e6125f0..fde5974 100644 --- a/test/roundNumber.test.ts +++ b/test/roundNumber.test.ts @@ -356,6 +356,6 @@ describe('Additional', () => { it('Print current version', () => { const formatter = new ExchNumberFormat(); const result = formatter.version; - expect(result).toBe('1.1.2'); + expect(result).toBe('1.1.3'); }); });