Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudflare/util-formatters

Package Overview
Dependencies
Maintainers
41
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/util-formatters - npm Package Compare versions

Comparing version 2.5.1 to 2.6.0

11

CHANGELOG.md

@@ -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 @@

3

es/formatters.js

@@ -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);
};

10

lib/formatters.js

@@ -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"
}
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