Socket
Socket
Sign inDemoInstall

@web3modal/common

Package Overview
Dependencies
Maintainers
10
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/common - npm Package Compare versions

Comparing version 5.0.11 to 5.1.0

5

dist/esm/src/utils/NetworkUtil.js
export const NetworkUtil = {
caipNetworkIdToNumber(caipnetworkId) {
return caipnetworkId ? Number(caipnetworkId.split(':')[1]) : undefined;
},
parseEvmChainId(chainId) {
return typeof chainId === 'string'
? this.caipNetworkIdToNumber(chainId)
: chainId;
}
};
//# sourceMappingURL=NetworkUtil.js.map

1

dist/types/src/utils/NetworkUtil.d.ts
import type { CaipNetworkId } from './TypeUtil.js';
export declare const NetworkUtil: {
caipNetworkIdToNumber(caipnetworkId?: CaipNetworkId): number | undefined;
parseEvmChainId(chainId: string | number): number | undefined;
};

2

dist/types/src/utils/TypeUtil.d.ts

@@ -18,2 +18,3 @@ export type CaipNetworkId = `${string}:${string}`;

hash: string;
chain: `${string}:${string}`;
minedAt: string;

@@ -24,3 +25,2 @@ sentFrom: string;

nonce: number;
chain?: string;
}

@@ -27,0 +27,0 @@ export interface TransactionTransfer {

{
"name": "@web3modal/common",
"version": "5.0.11",
"version": "5.1.0",
"type": "module",

@@ -15,2 +15,6 @@ "main": "./dist/esm/index.js",

},
"devDependencies": {
"vitest": "2.0.3",
"@vitest/coverage-v8": "2.0.5"
},
"keywords": [

@@ -17,0 +21,0 @@ "utils",

Sorry, the diff of this file is not supported yet

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