Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-words

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-words - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

__tests__/en-BD.test.ts

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [3.0.2](https://github.com/mastermunj/to-words/compare/v3.0.1...v3.0.2) (2021-11-24)
### [3.0.1](https://github.com/mastermunj/to-words/compare/v3.0.0...v3.0.1) (2021-10-23)

@@ -7,0 +9,0 @@

@@ -7,2 +7,3 @@ "use strict";

exports.ToWords = exports.DefaultToWordsOptions = exports.DefaultConverterOptions = void 0;
const en_BD_1 = __importDefault(require("./locales/en-BD"));
const en_GH_1 = __importDefault(require("./locales/en-GH"));

@@ -39,2 +40,4 @@ const en_IN_1 = __importDefault(require("./locales/en-IN"));

switch (this.options.localeCode) {
case 'en-BD':
return en_BD_1.default;
case 'en-GH':

@@ -41,0 +44,0 @@ return en_GH_1.default;

30

package.json
{
"name": "to-words",
"version": "3.0.1",
"version": "3.0.2",
"description": "Converts numbers (including decimal points) into words & currency.",

@@ -44,27 +44,27 @@ "keywords": [

"devDependencies": {
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@types/jest": "^27.0.2",
"@types/lodash": "^4.14.176",
"@types/node": "^16.11.4",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@types/jest": "^27.0.3",
"@types/lodash": "^4.14.177",
"@types/node": "^16.11.10",
"@types/source-map-support": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.32.0",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^25.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lint-staged": "^11.2.3",
"lint-staged": "^12.1.2",
"lodash": "^4.17.21",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"sort-package-json": "^1.52.0",
"source-map-support": "^0.5.20",
"sort-package-json": "^1.53.1",
"source-map-support": "^0.5.21",
"standard-version": "^9.3.2",
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
"typescript": "^4.5.2"
},

@@ -71,0 +71,0 @@ "engines": {

@@ -97,2 +97,3 @@ # Number to Words

| ------------- | ------------- | ------------- |
| Bangladesh | English | en-BD |
| Ghana | English | en-GH |

@@ -99,0 +100,0 @@ | India | English | en-IN (default) |

import { ConstructorOf, ConverterOptions, LocaleInterface, NumberWordMap, ToWordsOptions } from './types';
import enBd from './locales/en-BD';
import enGh from './locales/en-GH';

@@ -39,2 +40,4 @@ import enIn from './locales/en-IN';

switch (this.options.localeCode) {
case 'en-BD':
return enBd;
case 'en-GH':

@@ -41,0 +44,0 @@ return enGh;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc