@0xsequence/network
Advanced tools
Comparing version 0.9.3 to 0.9.5
# @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 @@ |
@@ -15,2 +15,3 @@ import { BigNumberish } from 'ethers'; | ||
isAuthChain?: boolean; | ||
sequenceApiUrl?: string; | ||
} | ||
@@ -17,0 +18,0 @@ export declare type Networks = NetworkConfig[]; |
{ | ||
"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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113661
3014
1
Updated@0xsequence/utils@^0.9.5
Updatedethers@^5.0.31