Socket
Socket
Sign inDemoInstall

@walletconnect/utils

Package Overview
Dependencies
Maintainers
1
Versions
655
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.35 to 1.0.0-beta.36

1

lib/index.d.ts

@@ -28,2 +28,3 @@ /// <reference types="node" />

export declare function removeHexPrefix(hex: string): string;
export declare function removeHexLeadingZeros(hex: string): string;
export declare function isHexString(value: any): boolean;

@@ -30,0 +31,0 @@ export declare function isEmptyString(value: string): boolean;

4

package.json
{
"name": "@walletconnect/utils",
"version": "1.0.0-beta.35",
"version": "1.0.0-beta.36",
"description": "Utility Library for WalletConnect",

@@ -61,3 +61,3 @@ "scripts": {

"@ethersproject/strings": "^5.0.0-beta.125",
"@walletconnect/types": "^1.0.0-beta.35",
"@walletconnect/types": "^1.0.0-beta.36",
"bignumber.js": "^8.1.1"

@@ -64,0 +64,0 @@ },

@@ -198,2 +198,9 @@ import BigNumber from 'bignumber.js'

export function removeHexLeadingZeros (hex: string): string {
hex = removeHexPrefix(hex)
hex = hex.startsWith('0') ? hex.substring(1) : hex
hex = addHexPrefix(hex)
return hex
}
export function isHexString (value: any): boolean {

@@ -263,3 +270,3 @@ return _isHexString(value)

const links: HTMLCollectionOf<
HTMLLinkElement
HTMLLinkElement
> = document.getElementsByTagName('link')

@@ -312,3 +319,3 @@ const icons: string[] = []

const metaTags: HTMLCollectionOf<
HTMLMetaElement
HTMLMetaElement
> = document.getElementsByTagName('meta')

@@ -453,4 +460,4 @@

): (
...callArgs: any[]
) => Promise<IJsonRpcResponseSuccess | IJsonRpcResponseError> {
...callArgs: any[]
) => Promise<IJsonRpcResponseSuccess | IJsonRpcResponseError> {
const promisifiedFunction = async (

@@ -505,2 +512,5 @@ ...callArgs: any[]

}
if (typeof result === 'string') {
result = removeHexLeadingZeros(result)
}
return result

@@ -507,0 +517,0 @@ }

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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