@cloudflare/util-formatters
Advanced tools
Comparing version 2.5.1 to 2.6.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.6.0](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-formatters@2.5.1...@cloudflare/util-formatters@2.6.0) (2020-08-11) | ||
### Features | ||
* **util-formatters:** UI-3677: add capitalizeStr util format fn ([028bc7a](http://stash.cfops.it:7999/fe/stratus/commits/028bc7a)) | ||
## [2.5.1](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-formatters@2.5.0...@cloudflare/util-formatters@2.5.1) (2020-07-27) | ||
@@ -8,0 +19,0 @@ |
@@ -186,2 +186,5 @@ import { format as d3Format } from 'd3-format'; | ||
return formatNumber(number, locale, useSI, decimalPlaces, trimInsignificantZeros); | ||
}; | ||
export var capitalizeStr = function capitalizeStr(str) { | ||
return str && str.charAt(0).toUpperCase() + str.slice(1); | ||
}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.formatNumberForAnalytics = exports.formatBits = exports.formatBytes = exports.formatCurrency = exports.formatNumber = exports.localizeNumberWithPrecision = exports.formatDate = exports.DateFormatters = void 0; | ||
exports.capitalizeStr = exports.formatNumberForAnalytics = exports.formatBits = exports.formatBytes = exports.formatCurrency = exports.formatNumber = exports.localizeNumberWithPrecision = exports.formatDate = exports.DateFormatters = void 0; | ||
@@ -220,2 +220,8 @@ var _d3Format = require("d3-format"); | ||
exports.formatNumberForAnalytics = formatNumberForAnalytics; | ||
exports.formatNumberForAnalytics = formatNumberForAnalytics; | ||
var capitalizeStr = function capitalizeStr(str) { | ||
return str && str.charAt(0).toUpperCase() + str.slice(1); | ||
}; | ||
exports.capitalizeStr = capitalizeStr; |
{ | ||
"name": "@cloudflare/util-formatters", | ||
"description": "", | ||
"version": "2.5.1", | ||
"version": "2.6.0", | ||
"types": "./dist/index.d.ts", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "8100a80b89d45316fb5e28df122ef0106f4fd266" | ||
"gitHead": "ea524ba371e703a60198e1d28d7447712ca79ffb" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27140
376