Comparing version 3.3.0 to 3.3.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [3.3.1](https://github.com/mastermunj/to-words/compare/v3.3.0...v3.3.1) (2022-11-10) | ||
### Bug Fixes | ||
* add dist ([ca7e4c9](https://github.com/mastermunj/to-words/commit/ca7e4c915cb6b393e50b941f6fd3a5cfd1186463)) | ||
## [3.3.0](https://github.com/mastermunj/to-words/compare/v3.2.0...v3.3.0) (2022-08-02) | ||
@@ -7,0 +14,0 @@ |
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.ToWords = exports.DefaultToWordsOptions = exports.DefaultConverterOptions = void 0; | ||
const en_AE_1 = __importDefault(require("./locales/en-AE")); | ||
const en_BD_1 = __importDefault(require("./locales/en-BD")); | ||
@@ -42,2 +43,4 @@ const en_GH_1 = __importDefault(require("./locales/en-GH")); | ||
switch (this.options.localeCode) { | ||
case 'en-AE': | ||
return en_AE_1.default; | ||
case 'en-BD': | ||
@@ -44,0 +47,0 @@ return en_BD_1.default; |
{ | ||
"name": "to-words", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Converts numbers (including decimal points) into words & currency.", | ||
@@ -44,18 +44,18 @@ "keywords": [ | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"@types/jest": "^28.1.6", | ||
"@types/lodash": "^4.14.182", | ||
"@types/node": "^18.6.3", | ||
"@types/source-map-support": "^0.5.4", | ||
"@typescript-eslint/eslint-plugin": "^5.32.0", | ||
"@typescript-eslint/parser": "^5.32.0", | ||
"@commitlint/cli": "^17.2.0", | ||
"@commitlint/config-conventional": "^17.2.0", | ||
"@types/jest": "^29.2.2", | ||
"@types/lodash": "^4.14.188", | ||
"@types/node": "^18.11.9", | ||
"@types/source-map-support": "^0.5.6", | ||
"@typescript-eslint/eslint-plugin": "^5.42.1", | ||
"@typescript-eslint/parser": "^5.42.1", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.21.0", | ||
"eslint": "^8.27.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.7.0", | ||
"eslint-plugin-jest": "^27.1.4", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"husky": "^8.0.1", | ||
"jest": "^28.1.3", | ||
"husky": "^8.0.2", | ||
"jest": "^29.3.1", | ||
"lint-staged": "^13.0.3", | ||
@@ -68,4 +68,4 @@ "lodash": "^4.17.21", | ||
"standard-version": "^9.5.0", | ||
"ts-jest": "^28.0.7", | ||
"typescript": "^4.7.4" | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^4.8.4" | ||
}, | ||
@@ -72,0 +72,0 @@ "engines": { |
@@ -103,3 +103,3 @@ # Number to Words | ||
| doNotAddOnly | boolean | false | Do not add `only` at the end of the words. This works only when currency = true | | ||
| currencyOptions | object | undefined | By default currency options are taken from the specified locale.<br/>This option allows to specify different currency options while keeping the language details from the selected locale (e.g. convert to English text but use EUR as a currency). You can define different currencies for each call to `convert()` so it works also if you need to dynamically support multiple currencies.<br/>*This works only when `currency = true`* | | ||
| currencyOptions | object | undefined | By default currency options are taken from the specified locale.<br/>This option allows to specify different currency options while keeping the language details from the selected locale (e.g. convert to English text but use EUR as a currency). You can define different currencies for each call to `convert()` so it works also if you need to dynamically support multiple currencies.<br/>*This works only when `currency = true`* | | ||
@@ -109,2 +109,3 @@ ## Supported Locale | ||
| ------------- | ------------- | ------------- | | ||
| UAE | English | en-AE | | ||
| Bangladesh | English | en-BD | | ||
@@ -111,0 +112,0 @@ | UK | English | en-GB | |
import { ConstructorOf, ConverterOptions, LocaleInterface, NumberWordMap, ToWordsOptions } from './types'; | ||
import enAe from './locales/en-AE'; | ||
import enBd from './locales/en-BD'; | ||
@@ -42,2 +43,4 @@ import enGh from './locales/en-GH'; | ||
switch (this.options.localeCode) { | ||
case 'en-AE': | ||
return enAe; | ||
case 'en-BD': | ||
@@ -44,0 +47,0 @@ return enBd; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
288320
88
6714
128