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.1.0 to 3.1.1

1

__tests__/fr-FR.test.ts

@@ -31,2 +31,3 @@ import { cloneDeep } from 'lodash';

[792581, 'Sept Cent Quatre-Vingt-Douze Mille Cinq Cent Quatre-Vingt-Un'],
[1342823, 'Un Million Trois Cent Quarante-Deux Mille Huit Cent Vingt-Trois'],
[2741034, 'Deux Millions Sept Cent Quarante Et Un Mille Trente-Quatre'],

@@ -33,0 +34,0 @@ [86429753, 'Quatre-Vingt-Six Millions Quatre Cent Vingt-Neuf Mille Sept Cent Cinquante-Trois'],

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

### [3.1.1](https://github.com/mastermunj/to-words/compare/v3.1.0...v3.1.1) (2022-03-28)
### Bug Fixes
* add includes of ignore one for words ([a289892](https://github.com/mastermunj/to-words/commit/a2898923e96a7dfbbde8518d6d794014bb81ba88))
* generate build ([6d08e8a](https://github.com/mastermunj/to-words/commit/6d08e8aaee3e55cbbab211894a87722254a7fe50))
## [3.1.0](https://github.com/mastermunj/to-words/compare/v3.0.3...v3.1.0) (2022-02-09)

@@ -7,0 +15,0 @@

6

dist/ToWords.js

@@ -185,3 +185,3 @@ "use strict";

convertInternal(number) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
const locale = this.getLocale();

@@ -217,3 +217,3 @@ if (locale.config.exactWordsMapping) {

}
if (quotient === 1 && ((_h = locale.config) === null || _h === void 0 ? void 0 : _h.ignoreOneForWords)) {
if (quotient === 1 && ((_j = (_h = locale.config) === null || _h === void 0 ? void 0 : _h.ignoreOneForWords) === null || _j === void 0 ? void 0 : _j.includes(matchValue))) {
words.push(matchValue);

@@ -225,3 +225,3 @@ }

if (remainder > 0) {
if ((_k = (_j = locale.config) === null || _j === void 0 ? void 0 : _j.splitWord) === null || _k === void 0 ? void 0 : _k.length) {
if ((_l = (_k = locale.config) === null || _k === void 0 ? void 0 : _k.splitWord) === null || _l === void 0 ? void 0 : _l.length) {
words.push(locale.config.splitWord);

@@ -228,0 +228,0 @@ }

{
"name": "to-words",
"version": "3.1.0",
"version": "3.1.1",
"description": "Converts numbers (including decimal points) into words & currency.",

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

"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.178",
"@types/node": "^17.0.16",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.180",
"@types/node": "^17.0.23",
"@types/source-map-support": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.0",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.3",
"lint-staged": "^12.3.7",
"lodash": "^4.17.21",
"prettier": "^2.5.1",
"prettier": "^2.6.1",
"rimraf": "^3.0.2",
"sort-package-json": "^1.54.0",
"sort-package-json": "^1.55.0",
"source-map-support": "^0.5.21",
"standard-version": "^9.3.2",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
},

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

@@ -234,3 +234,3 @@ import { ConstructorOf, ConverterOptions, LocaleInterface, NumberWordMap, ToWordsOptions } from './types';

}
if (quotient === 1 && locale.config?.ignoreOneForWords) {
if (quotient === 1 && locale.config?.ignoreOneForWords?.includes(matchValue)) {
words.push(matchValue);

@@ -237,0 +237,0 @@ } else {

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