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.58 to 1.0.0-beta.59

1

dist/cjs/index.d.ts

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

export declare function isSilentPayload(request: IJsonRpcRequest): boolean;
export declare function logDeprecationWarning(): void;
//# sourceMappingURL=index.d.ts.map

28

dist/cjs/index.js

@@ -192,3 +192,6 @@ "use strict";

const result = ((a, b) => {
for (b = a = ''; a++ < 36; b += (a * 51) & 52 ? (a ^ 15 ? 8 ^ (Math.random() * (a ^ 20 ? 16 : 4)) : 4).toString(16) : '-') {
for (b = a = ''; a++ < 36; b +=
(a * 51) & 52
? (a ^ 15 ? 8 ^ (Math.random() * (a ^ 20 ? 16 : 4)) : 4).toString(16)
: '-') {
// empty

@@ -205,2 +208,5 @@ }

exports.isValidAddress = (address) => {
function isAddressAllLowercase(str) {
return /^(0x)?[0-9a-f]{40}$/i.test(str);
}
if (!address) {

@@ -212,6 +218,7 @@ return false;

}
else if (!/^(0x)?[0-9a-f]{40}$/i.test(address)) {
else if (!isAddressAllLowercase(address)) {
return false;
}
else if (/^(0x)?[0-9a-f]{40}$/.test(address) || /^(0x)?[0-9A-F]{40}$/.test(address)) {
else if (/^(0x)?[0-9a-f]{40}$/.test(address) ||
/^(0x)?[0-9A-F]{40}$/.test(address)) {
return true;

@@ -313,3 +320,5 @@ }

const result = {};
const pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&');
const pairs = (queryString[0] === '?'
? queryString.substr(1)
: queryString).split('&');
for (let i = 0; i < pairs.length; i++) {

@@ -386,3 +395,4 @@ const keyArr = pairs[i].match(/\w+(?==)/i) || [];

let result = value;
if (typeof value === 'number' || (typeof value === 'string' && !isEmptyString(value))) {
if (typeof value === 'number' ||
(typeof value === 'string' && !isEmptyString(value))) {
if (!isHexString(value)) {

@@ -403,3 +413,5 @@ result = convertNumberToHex(value);

to: typeof txData.to === 'undefined' ? '' : sanitizeHex(txData.to),
gasPrice: typeof txData.gasPrice === 'undefined' ? '' : parseHexValues(txData.gasPrice),
gasPrice: typeof txData.gasPrice === 'undefined'
? ''
: parseHexValues(txData.gasPrice),
gasLimit: typeof txData.gasLimit === 'undefined'

@@ -514,2 +526,6 @@ ? typeof txData.gas === 'undefined'

exports.isSilentPayload = isSilentPayload;
function logDeprecationWarning() {
console.warn('DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!');
}
exports.logDeprecationWarning = logDeprecationWarning;
//# sourceMappingURL=index.js.map
{
"name": "@walletconnect/utils",
"version": "1.0.0-beta.58",
"version": "1.0.0-beta.59",
"description": "Utility Library for WalletConnect",

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

"@ethersproject/strings": "5.0.0-beta.136",
"@walletconnect/types": "^1.0.0-beta.58",
"@walletconnect/types": "^1.0.0-beta.59",
"bignumber.js": "9.0.0"

@@ -68,0 +68,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 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