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

@0xsequence/network

Package Overview
Dependencies
Maintainers
5
Versions
504
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.36.4 to 0.36.5

5

dist/0xsequence-network.cjs.dev.js

@@ -28,6 +28,3 @@ 'use strict';

const getAuthNetwork = networks => {
if (!networks || networks.length === 0) return undefined;
if (networks[0] && networks[0].isAuthChain) return networks[0];
if (networks.length > 1 && networks[1].isAuthChain) return networks[1];
return undefined;
return networks.find(network => network.isAuthChain);
};

@@ -34,0 +31,0 @@ const isValidNetworkConfig = (networkConfig, raise = false, skipRelayerCheck = false) => {

@@ -28,6 +28,3 @@ 'use strict';

const getAuthNetwork = networks => {
if (!networks || networks.length === 0) return undefined;
if (networks[0] && networks[0].isAuthChain) return networks[0];
if (networks.length > 1 && networks[1].isAuthChain) return networks[1];
return undefined;
return networks.find(network => network.isAuthChain);
};

@@ -34,0 +31,0 @@ const isValidNetworkConfig = (networkConfig, raise = false, skipRelayerCheck = false) => {

@@ -24,6 +24,3 @@ import { urlClean, logger } from '@0xsequence/utils';

const getAuthNetwork = networks => {
if (!networks || networks.length === 0) return undefined;
if (networks[0] && networks[0].isAuthChain) return networks[0];
if (networks.length > 1 && networks[1].isAuthChain) return networks[1];
return undefined;
return networks.find(network => network.isAuthChain);
};

@@ -30,0 +27,0 @@ const isValidNetworkConfig = (networkConfig, raise = false, skipRelayerCheck = false) => {

4

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

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

"dependencies": {
"@0xsequence/utils": "^0.36.4",
"@0xsequence/utils": "^0.36.5",
"@ethersproject/providers": "^5.5.1",

@@ -19,0 +19,0 @@ "ethers": "^5.5.2"

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

export const getAuthNetwork = (networks: NetworkConfig[]): NetworkConfig | undefined => {
if (!networks || networks.length === 0) return undefined
if (networks[0] && networks[0].isAuthChain) return networks[0]
if (networks.length > 1 && networks[1].isAuthChain) return networks[1]
return undefined
return networks.find(network => network.isAuthChain)
}

@@ -31,0 +28,0 @@

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