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

@polkadot/util

Package Overview
Dependencies
Maintainers
2
Versions
1410
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/util - npm Package Compare versions

Comparing version 10.2.4 to 10.2.5

3

cjs/format/formatBalance.js

@@ -53,3 +53,4 @@ "use strict";

// before trimming to the correct (calculated) amount of decimals again
let post = text.padStart((mid < 0 ? 0 - mid : 0) + 1, '0').substring(mid < 0 ? 0 : mid).padEnd(withAll ? Math.max(decimals, 4) : 4, '0').substring(0, withAll ? Math.max(4, decimals + si.power) : 4);
let post = text.padStart(mid < 0 ? decimals : 1, '0').substring(mid < 0 ? 0 : mid).padEnd(withAll ? Math.max(decimals, 4) : 4, '0').substring(0, withAll ? Math.max(4, decimals + si.power) : 4);
console.error(mid, pre, post, text.padStart((mid < 0 ? 0 - mid : 0) + 1, '0'));

@@ -56,0 +57,0 @@ // remove all trailing 0's (if required via flag)

@@ -16,4 +16,4 @@ "use strict";

type: 'cjs',
version: '10.2.4'
version: '10.2.5'
};
exports.packageInfo = packageInfo;

@@ -46,3 +46,4 @@ // Copyright 2017-2023 @polkadot/util authors & contributors

// before trimming to the correct (calculated) amount of decimals again
let post = text.padStart((mid < 0 ? 0 - mid : 0) + 1, '0').substring(mid < 0 ? 0 : mid).padEnd(withAll ? Math.max(decimals, 4) : 4, '0').substring(0, withAll ? Math.max(4, decimals + si.power) : 4);
let post = text.padStart(mid < 0 ? decimals : 1, '0').substring(mid < 0 ? 0 : mid).padEnd(withAll ? Math.max(decimals, 4) : 4, '0').substring(0, withAll ? Math.max(4, decimals + si.power) : 4);
console.error(mid, pre, post, text.padStart((mid < 0 ? 0 - mid : 0) + 1, '0'));

@@ -49,0 +50,0 @@ // remove all trailing 0's (if required via flag)

@@ -23,3 +23,3 @@ {

"type": "module",
"version": "10.2.4",
"version": "10.2.5",
"main": "./cjs/index.js",

@@ -723,6 +723,6 @@ "module": "./index.js",

"@babel/runtime": "^7.20.7",
"@polkadot/x-bigint": "10.2.4",
"@polkadot/x-global": "10.2.4",
"@polkadot/x-textdecoder": "10.2.4",
"@polkadot/x-textencoder": "10.2.4",
"@polkadot/x-bigint": "10.2.5",
"@polkadot/x-global": "10.2.5",
"@polkadot/x-textdecoder": "10.2.5",
"@polkadot/x-textencoder": "10.2.5",
"@types/bn.js": "^5.1.1",

@@ -729,0 +729,0 @@ "bn.js": "^5.2.1"

@@ -10,3 +10,3 @@ // Copyright 2017-2023 @polkadot/util authors & contributors

type: 'esm',
version: '10.2.4'
version: '10.2.5'
};

Sorry, the diff of this file is too big to display

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