@walletconnect/utils
Advanced tools
Comparing version 1.0.0-beta.81 to 1.0.0-beta.82
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js")); | ||
const bn_js_1 = tslib_1.__importDefault(require("bn.js")); | ||
const bytes_1 = require("@ethersproject/bytes"); | ||
@@ -89,3 +89,3 @@ const strings_1 = require("@ethersproject/strings"); | ||
function convertUtf8ToNumber(utf8) { | ||
const num = new bignumber_js_1.default(utf8).toNumber(); | ||
const num = new bn_js_1.default(utf8).toNumber(); | ||
return num; | ||
@@ -108,3 +108,3 @@ } | ||
function convertNumberToUtf8(num) { | ||
const utf8 = new bignumber_js_1.default(num).toString(); | ||
const utf8 = new bn_js_1.default(num).toString(); | ||
return utf8; | ||
@@ -114,3 +114,3 @@ } | ||
function convertNumberToHex(num, noPrefix) { | ||
let hex = new bignumber_js_1.default(num).toString(16); | ||
let hex = new bn_js_1.default(num).toString(16); | ||
hex = misc_1.sanitizeHex(hex); | ||
@@ -143,3 +143,3 @@ if (noPrefix) { | ||
function convertHexToNumber(hex) { | ||
const num = new bignumber_js_1.default(hex).toNumber(); | ||
const num = new bn_js_1.default(hex, "hex").toNumber(); | ||
return num; | ||
@@ -146,0 +146,0 @@ } |
{ | ||
"name": "@walletconnect/utils", | ||
"version": "1.0.0-beta.81", | ||
"version": "1.0.0-beta.82", | ||
"description": "Utility Library for WalletConnect", | ||
@@ -65,4 +65,4 @@ "scripts": { | ||
"@ethersproject/strings": "5.0.0-beta.136", | ||
"@walletconnect/types": "^1.0.0-beta.81", | ||
"bignumber.js": "9.0.0", | ||
"@walletconnect/types": "^1.0.0-beta.82", | ||
"bn.js": "5.1.1", | ||
"detect-browser": "4.8.0" | ||
@@ -69,0 +69,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
451878
1303
0
+ Addedbn.js@5.1.1
+ Addedbn.js@5.1.1(transitive)
- Removedbignumber.js@9.0.0
- Removedbignumber.js@9.0.0(transitive)