New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bobril-g11n

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bobril-g11n - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

5

CHANGELOG.md
CHANGELOG
===
3.2.0
--
Reintroduce number format "0 b", but with nonbreakable space in output which makes more sence.
3.1.0

@@ -5,0 +10,0 @@ --

2

package.json
{
"name": "bobril-g11n",
"version": "3.1.0",
"version": "3.2.0",
"description": "Bobril globalization",

@@ -5,0 +5,0 @@ "main": "index.js",

"use strict";
var RuntimeFunctionGenerator_1 = require("./RuntimeFunctionGenerator");
function buildFormatter(rules, format) {
if (format == "0b") {
if (format == "0b" || format == "0 b") {
var suffixes_1 = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
var space_1 = format == "0 b" ? "\xa0" : "";
return function (val) {

@@ -19,3 +20,3 @@ var suffix = "";

}
return val.toFixed(0) + suffix;
return val.toFixed(0) + space_1 + suffix;
};

@@ -22,0 +23,0 @@ }

@@ -5,4 +5,5 @@ import { ILocaleRules } from "./localeDataStorage";

export function buildFormatter(rules: ILocaleRules, format: string): (val: number) => string {
if (format == "0b") {
if (format == "0b" || format == "0 b") {
const suffixes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
const space = format == "0 b" ? "\xa0" : "";
return (val: number) => {

@@ -21,3 +22,3 @@ let suffix = "";

}
return val.toFixed(0) + suffix;
return val.toFixed(0) + space + suffix;
};

@@ -24,0 +25,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