@ethersproject/logger
Advanced tools
Comparing version 6.0.0-beta.3 to 6.0.0-beta.4
@@ -57,3 +57,4 @@ export declare type ErrorSignature = { | ||
operation: string; | ||
request: ErrorFetchRequest; | ||
reason: string; | ||
request?: ErrorFetchRequest; | ||
} | ||
@@ -60,0 +61,0 @@ export interface BadDataError extends EthersError<"BAD_DATA"> { |
@@ -18,7 +18,2 @@ //export type TransactionReceipt { | ||
} | ||
/* | ||
export function isContractCallException(error: any): error is ContractCallExceptionError { | ||
return isError(error, "CALL_EXCEPTION") && (<any>error).method; | ||
} | ||
*/ | ||
//# sourceMappingURL=errors.js.map |
export { ErrorCode, isError, isCallException, } from "./errors.js"; | ||
export { Logger } from "./logger.js"; | ||
export type { EthersError, UnknownError, NotImplementedError, UnsupportedOperationError, NetworkError, ServerError, TimeoutError, BufferOverrunError, NumericFaultError, InvalidArgumentError, MissingArgumentError, UnexpectedArgumentError, CallExceptionError, InsufficientFundsError, NonceExpiredError, ReplacementUnderpricedError, TransactionReplacedError, UnconfiguredNameError, UnpredictableGasLimitError, CodedEthersError } from "./errors.js"; | ||
export type { BytesLike, BigNumberish, Numeric } from "./logger.js"; | ||
export type { EthersError, CodedEthersError, BadDataError, BufferOverrunError, CallExceptionError, InsufficientFundsError, InvalidArgumentError, MissingArgumentError, NetworkError, NonceExpiredError, NotImplementedError, NumericFaultError, OffchainFaultError, ReplacementUnderpricedError, ServerError, TransactionReplacedError, TimeoutError, UnconfiguredNameError, UnexpectedArgumentError, UnknownError, UnpredictableGasLimitError, UnsupportedOperationError, } from "./errors.js"; | ||
export type { BytesLike, BigNumberish, ErrorInfo, Numeric } from "./logger.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -61,6 +61,2 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
makeError(message, code, info) { | ||
// Errors are being censored | ||
//if (_censor === Censor.ON || _censor === Censor.PERMANENT) { | ||
// return this.makeError("censored error", code, <any>{ }); | ||
//} | ||
{ | ||
@@ -279,4 +275,3 @@ const details = []; | ||
}; | ||
//static readonly Errors = ErrorCode; | ||
Logger.LogLevels = LogLevel; | ||
//# sourceMappingURL=logger.js.map |
@@ -9,3 +9,3 @@ { | ||
"ethereum": "donations.ethers.eth", | ||
"gitHead": "d434fb442195df29fe4867ca9c9f77c4e43ac4b9", | ||
"gitHead": "d1696bfa26b800157764d795efd7bd07fe36a758", | ||
"keywords": [ | ||
@@ -31,6 +31,6 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0xbfdce007430b5123120d3bf6b671de64288d59e0ba179929e8ffe1eab9326d4d", | ||
"tarballHash": "0xf6131ac7effe5eb4a009e6f5e06af3b779a98a176e61b47e919c560ff2dc6e0f", | ||
"type": "module", | ||
"types": "./lib/index.d.ts", | ||
"version": "6.0.0-beta.3" | ||
"version": "6.0.0-beta.4" | ||
} |
@@ -121,3 +121,4 @@ | ||
operation: string; | ||
request: ErrorFetchRequest; | ||
reason: string; | ||
request?: ErrorFetchRequest; | ||
} | ||
@@ -274,6 +275,1 @@ | ||
} | ||
/* | ||
export function isContractCallException(error: any): error is ContractCallExceptionError { | ||
return isError(error, "CALL_EXCEPTION") && (<any>error).method; | ||
} | ||
*/ |
@@ -14,23 +14,25 @@ export { | ||
export type { | ||
EthersError, | ||
UnknownError, | ||
NotImplementedError, | ||
UnsupportedOperationError, | ||
NetworkError, | ||
ServerError, | ||
TimeoutError, | ||
EthersError, CodedEthersError, | ||
BadDataError, | ||
BufferOverrunError, | ||
NumericFaultError, | ||
CallExceptionError, | ||
InsufficientFundsError, | ||
InvalidArgumentError, | ||
MissingArgumentError, | ||
UnexpectedArgumentError, | ||
CallExceptionError, | ||
//ContractCallExceptionError, | ||
InsufficientFundsError, | ||
NetworkError, | ||
NonceExpiredError, | ||
NotImplementedError, | ||
NumericFaultError, | ||
OffchainFaultError, | ||
ReplacementUnderpricedError, | ||
ServerError, | ||
TransactionReplacedError, | ||
TimeoutError, | ||
UnconfiguredNameError, | ||
UnexpectedArgumentError, | ||
UnknownError, | ||
UnpredictableGasLimitError, | ||
CodedEthersError | ||
UnsupportedOperationError, | ||
} from "./errors.js"; | ||
@@ -41,3 +43,4 @@ | ||
BigNumberish, | ||
ErrorInfo, | ||
Numeric | ||
} from "./logger.js"; |
@@ -66,3 +66,2 @@ import { ErrorCode } from "./errors.js"; | ||
//static readonly Errors = ErrorCode; | ||
static readonly LogLevels = LogLevel; | ||
@@ -75,7 +74,2 @@ | ||
makeError<K extends ErrorCode, T extends CodedEthersError<K>>(message: string, code: K, info?: ErrorInfo<T>): T { | ||
// Errors are being censored | ||
//if (_censor === Censor.ON || _censor === Censor.PERMANENT) { | ||
// return this.makeError("censored error", code, <any>{ }); | ||
//} | ||
{ | ||
@@ -82,0 +76,0 @@ const details: Array<string> = []; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57651
982