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

@walletconnect/utils

Package Overview
Dependencies
Maintainers
1
Versions
661
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walletconnect/utils - npm Package Compare versions

Comparing version 1.0.0-beta.81 to 1.0.0-beta.82

10

dist/cjs/encoding.js
"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

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