Skip to content

Commit

Permalink
Merge pull request #15 from bchainhub/update/fix-02
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
rastislavcore authored Apr 24, 2024
2 parents e06236d + 0838c40 commit 58c46c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -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 = {};
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -47,9 +48,6 @@
"node": ">=13.2.0"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
".": "./dist/index.js"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/roundNumber.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit 58c46c6

Please sign in to comment.