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

@0xsequence/network

Package Overview
Dependencies
Maintainers
3
Versions
481
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/network - npm Package Compare versions

Comparing version 0.9.3 to 0.9.5

8

CHANGELOG.md
# @0xsequence/network
## 0.9.5
### Patch Changes
- Implemented session class
- Updated dependencies [undefined]
- @0xsequence/utils@0.9.5
## 0.9.3

@@ -4,0 +12,0 @@

1

dist/declarations/src/config.d.ts

@@ -15,2 +15,3 @@ import { BigNumberish } from 'ethers';

isAuthChain?: boolean;
sequenceApiUrl?: string;
}

@@ -17,0 +18,0 @@ export declare type Networks = NetworkConfig[];

6

package.json
{
"name": "@0xsequence/network",
"version": "0.9.3",
"version": "0.9.5",
"description": "network sub-package for Sequence",

@@ -16,5 +16,5 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/network",

"dependencies": {
"@0xsequence/utils": "^0.9.3",
"@0xsequence/utils": "^0.9.5",
"@ethersproject/providers": "^5.0.20",
"ethers": "^5.0.27"
"ethers": "^5.0.31"
},

@@ -21,0 +21,0 @@ "peerDependencies": {},

@@ -29,2 +29,5 @@ import { ethers, BigNumberish } from 'ethers'

isAuthChain?: boolean
// optional sequence api service
sequenceApiUrl?: string
}

@@ -31,0 +34,0 @@

@@ -225,3 +225,3 @@ import { ethers, BigNumberish } from 'ethers'

export const findNetworkConfig = (networks: NetworkConfig[], chainId: ChainId): NetworkConfig => {
if (typeof(chainId) === 'string') {
if (typeof chainId === 'string') {
if (chainId.startsWith('0x')) {

@@ -233,3 +233,3 @@ const id = ethers.BigNumber.from(chainId).toNumber()

}
} else if (typeof(chainId) === 'number') {
} else if (typeof chainId === 'number') {
return networks.find(n => n.chainId === chainId)

@@ -236,0 +236,0 @@ } else if ((<NetworkConfig>chainId).chainId) {

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