@darkpos/utils 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/localization.js +1 -2
- package/package.json +3 -6
package/lib/localization.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const { parsePhoneNumberFromString } = require('libphonenumber-js');
|
|
2
2
|
const dateUtil = require('./date');
|
|
3
|
-
const math = require('./math');
|
|
4
3
|
|
|
5
4
|
const formats = {
|
|
6
5
|
'en-US': 'MM/DD/YYYY',
|
|
@@ -168,7 +167,7 @@ const dateFormatPattern = lang => formats[lang];
|
|
|
168
167
|
const monthAndDateFormatPattern = lang => monthAndDateFormats[lang];
|
|
169
168
|
|
|
170
169
|
const formatAmountWithCurrency = (amount, currency, locale) =>
|
|
171
|
-
typeof amount === 'number'
|
|
170
|
+
typeof amount === 'number'
|
|
172
171
|
? new Intl.NumberFormat(locale, {
|
|
173
172
|
style: 'currency',
|
|
174
173
|
currency,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darkpos/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "General purpose utilities",
|
|
5
5
|
"author": "Dark POS",
|
|
6
6
|
"homepage": "https://gitlab.com/darkpos/packages/dark#readme",
|
|
@@ -33,11 +33,8 @@
|
|
|
33
33
|
"eslint": "^8.2.0",
|
|
34
34
|
"eslint-config-airbnb": "^19.0.4",
|
|
35
35
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
36
|
-
"eslint-config-prettier": "^8.5.0",
|
|
37
36
|
"eslint-plugin-import": "^2.26.0",
|
|
38
|
-
"eslint-plugin-jest": "^26.5.3"
|
|
39
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
40
|
-
"prettier": "^2.7.0"
|
|
37
|
+
"eslint-plugin-jest": "^26.5.3"
|
|
41
38
|
},
|
|
42
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "40e27feaae9c0f473edce2c07aa9362a8a188d47"
|
|
43
40
|
}
|