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 2.1.1 to 2.2.0

__tests__/en-MU.test.ts

9

.eslintrc.js

@@ -8,6 +8,3 @@ module.exports = {

},
plugins: [
'@typescript-eslint',
'jest',
],
plugins: ['@typescript-eslint', 'jest'],
extends: [

@@ -28,3 +25,3 @@ 'eslint:recommended',

browser: false,
}
};
},
};

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

## [2.2.0](https://github.com/mastermunj/to-words/compare/v2.1.1...v2.2.0) (2020-06-20)
### Features
* add Mauritius English locale ([cead7b4](https://github.com/mastermunj/to-words/commit/cead7b42b106c06404f8c7ef21f28262f353aa66))
### [2.1.1](https://github.com/mastermunj/to-words/compare/v2.1.0...v2.1.1) (2020-05-01)

@@ -7,0 +14,0 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locale = void 0;
class Locale {

@@ -4,0 +5,0 @@ constructor() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locale = void 0;
class Locale {

@@ -4,0 +5,0 @@ constructor() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToWords = void 0;
const DefaultConverterOptions = {

@@ -18,2 +19,3 @@ currency: false,

getLocaleClass() {
// eslint-disable-next-line @typescript-eslint/no-var-requires
return require(`./locales/${this.options.localeCode}`).Locale;

@@ -20,0 +22,0 @@ }

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

@@ -51,9 +51,9 @@ "keywords": [

"@commitlint/config-conventional": "^8.3.4",
"@types/jest": "^25.2.1",
"@types/jest": "^26.0.0",
"@types/lodash": "^4.14.150",
"@types/node": "^13.13.4",
"@types/node": "^14.0.1",
"@types/source-map-support": "^0.5.1",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"eslint": "^6.8.0",
"@typescript-eslint/eslint-plugin": "^3.3.0",
"@typescript-eslint/parser": "^3.3.0",
"eslint": "^7.2.0",
"eslint-config-prettier": "^6.11.0",

@@ -63,3 +63,3 @@ "eslint-plugin-jest": "^23.8.2",

"husky": "^4.2.5",
"jest": "^25.5.3",
"jest": "^26.0.1",
"lint-staged": "^10.2.2",

@@ -71,4 +71,4 @@ "lodash": "^4.17.15",

"source-map-support": "^0.5.19",
"standard-version": "^7.1.0",
"ts-jest": "^25.4.0",
"standard-version": "^8.0.0",
"ts-jest": "^26.1.0",
"typescript": "^3.8.3"

@@ -75,0 +75,0 @@ },

@@ -39,2 +39,3 @@ import { LocaleInterface } from './locales/locale.interface';

private getLocaleClass(): ConstructorOf<LocaleInterface> {
// eslint-disable-next-line @typescript-eslint/no-var-requires
return require(`./locales/${this.options.localeCode}`).Locale;

@@ -41,0 +42,0 @@ }

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