@polkadot/util
Advanced tools
Comparing version 10.2.4 to 10.2.5
@@ -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
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
531927
148916
15309
+ Added@polkadot/x-bigint@10.2.5(transitive)
+ Added@polkadot/x-global@10.2.5(transitive)
+ Added@polkadot/x-textdecoder@10.2.5(transitive)
+ Added@polkadot/x-textencoder@10.2.5(transitive)
- Removed@polkadot/x-bigint@10.2.4(transitive)
- Removed@polkadot/x-global@10.2.4(transitive)
- Removed@polkadot/x-textdecoder@10.2.4(transitive)
- Removed@polkadot/x-textencoder@10.2.4(transitive)
Updated@polkadot/x-bigint@10.2.5
Updated@polkadot/x-global@10.2.5