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

@ethersproject/networks

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/networks - npm Package Compare versions

Comparing version 5.0.0-beta.125 to 5.0.0-beta.126

2

_version.d.ts

@@ -1,1 +0,1 @@

export declare const version = "5.0.0-beta.125";
export declare const version = "5.0.0-beta.126";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.125";
exports.version = "5.0.0-beta.126";
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var errors = __importStar(require("@ethersproject/errors"));
var logger_1 = require("@ethersproject/logger");
var _version_1 = require("./_version");
var logger = new logger_1.Logger(_version_1.version);
function ethDefaultProvider(network) {

@@ -156,3 +151,3 @@ return function (providers, options) {

if (typeof (network.chainId) !== "number") {
errors.throwError("invalid network chainId", errors.INVALID_ARGUMENT, { arg: "network", value: network });
logger.throwArgumentError("invalid network chainId", "network", network);
}

@@ -163,3 +158,3 @@ return network;

if (network.chainId !== 0 && network.chainId !== standard.chainId) {
errors.throwError("network chainId mismatch", errors.INVALID_ARGUMENT, { arg: "network", value: network });
logger.throwArgumentError("network chainId mismatch", "network", network);
}

@@ -166,0 +161,0 @@ // Standard Network (allow overriding the ENS address)

{
"name": "@ethersproject/networks",
"version": "5.0.0-beta.125",
"version": "5.0.0-beta.126",
"description": "Network definitions for ethers.",

@@ -10,3 +10,3 @@ "main": "index.js",

"dependencies": {
"@ethersproject/errors": ">5.0.0-beta.0"
"@ethersproject/logger": ">5.0.0-beta.0"
},

@@ -22,3 +22,3 @@ "keywords": [

},
"tarballHash": "0x00ddc55c9d4a55e9bdb76344f8fed34b0733a4e132666e505f227c40a91748f3"
"tarballHash": "0x48b2dafc0ae52ee5960b9478575ca59e8d205f5e302f0730402cdd30e5e85d0b"
}
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