@ethersproject/networks
Advanced tools
Comparing version 5.0.0-beta.125 to 5.0.0-beta.126
@@ -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"; |
15
index.js
"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" | ||
} |
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
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
7868
189
+ Added@ethersproject/logger@5.7.0(transitive)
- Removed@ethersproject/errors@>5.0.0-beta.0
- Removed@ethersproject/errors@5.0.1(transitive)