@vivareal/javascript-utils
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -81,6 +81,10 @@ 'use strict'; | ||
var getResizedImage = ({ cropType = 'fit-in', size = '200x200', url }) => | ||
(url || '').replace('{action}', cropType).replace('{width}x{height}', size); | ||
exports.currencyFormat = currencyFormat; | ||
exports.getFullAddress = getFullAddress; | ||
exports.getResizedImage = getResizedImage; | ||
exports.getSmallAddress = getSmallAddress; | ||
exports.getUF = getUF; | ||
exports.humanizeDate = humanizeDate; |
@@ -75,2 +75,5 @@ import { isWithinInterval, subDays, addDays, formatRelative, format } from 'date-fns'; | ||
export { currencyFormat, getFullAddress, getSmallAddress, getUF, humanizeDate }; | ||
var getResizedImage = ({ cropType = 'fit-in', size = '200x200', url }) => | ||
(url || '').replace('{action}', cropType).replace('{width}x{height}', size); | ||
export { currencyFormat, getFullAddress, getResizedImage, getSmallAddress, getUF, humanizeDate }; |
{ | ||
"name": "@vivareal/javascript-utils", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "A set of javascript utilities", | ||
@@ -26,3 +26,3 @@ "author": "Grupo ZAP", | ||
"dev": "rollup -c -w", | ||
"test": "NODE_ICU_DATA=../../node_modules/full-icu jest", | ||
"test": "NODE_ICU_DATA=../../node_modules/full-icu TZ=America/Sao_Paulo jest", | ||
"pretest": "npm run build" | ||
@@ -55,3 +55,3 @@ }, | ||
}, | ||
"gitHead": "fd0fbbcc14436a048eddba733d8171148c92280c" | ||
"gitHead": "2ea280cea8d73f44f443587d0bebefa8c8e6918a" | ||
} |
7671
130