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

web3-errors

Package Overview
Dependencies
Maintainers
5
Versions
370
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-errors - npm Package Compare versions

Comparing version 1.3.1-dev.b3cb1b7.0 to 1.3.1-dev.b3ee417.0

lib/commonjs/tsconfig.cjs.tsbuildinfo

10

lib/commonjs/errors/contract_errors.d.ts

@@ -71,3 +71,3 @@ import { JsonRpcError, TransactionReceipt, HexString } from 'web3-types';

}
export declare type ProviderErrorData = HexString | {
export type ProviderErrorData = HexString | {
data: HexString;

@@ -104,7 +104,5 @@ } | {

data: string;
errorName?: string | undefined;
errorSignature?: string | undefined;
errorArgs?: {
[x: string]: unknown;
} | undefined;
errorName?: string;
errorSignature?: string;
errorArgs?: { [K in string]: unknown; };
};

@@ -111,0 +109,0 @@ }

1

lib/commonjs/errors/contract_errors.js

@@ -114,2 +114,3 @@ "use strict";

this.name = ('name' in error && error.name) || this.constructor.name;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
this.stack = ('stack' in error && error.stack) || undefined;

@@ -116,0 +117,0 @@ this.code = error.code;

@@ -25,19 +25,2 @@ "use strict";

class BaseWeb3Error extends Error {
constructor(msg, cause) {
super(msg);
if (Array.isArray(cause)) {
// eslint-disable-next-line no-use-before-define
this.cause = new MultipleErrors(cause);
}
else {
this.cause = cause;
}
this.name = this.constructor.name;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(new.target.constructor);
}
else {
this.stack = new Error().stack;
}
}
/**

@@ -65,2 +48,19 @@ * @deprecated Use the `cause` property instead.

}
constructor(msg, cause) {
super(msg);
if (Array.isArray(cause)) {
// eslint-disable-next-line no-use-before-define
this.cause = new MultipleErrors(cause);
}
else {
this.cause = cause;
}
this.name = this.constructor.name;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(new.target.constructor);
}
else {
this.stack = new Error().stack;
}
}
static convertToString(value, unquotValue = false) {

@@ -67,0 +67,0 @@ // Using "null" value intentionally for validation

@@ -101,2 +101,3 @@ /*

this.name = ('name' in error && error.name) || this.constructor.name;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
this.stack = ('stack' in error && error.stack) || undefined;

@@ -103,0 +104,0 @@ this.code = error.code;

@@ -22,19 +22,2 @@ /*

export class BaseWeb3Error extends Error {
constructor(msg, cause) {
super(msg);
if (Array.isArray(cause)) {
// eslint-disable-next-line no-use-before-define
this.cause = new MultipleErrors(cause);
}
else {
this.cause = cause;
}
this.name = this.constructor.name;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(new.target.constructor);
}
else {
this.stack = new Error().stack;
}
}
/**

@@ -62,2 +45,19 @@ * @deprecated Use the `cause` property instead.

}
constructor(msg, cause) {
super(msg);
if (Array.isArray(cause)) {
// eslint-disable-next-line no-use-before-define
this.cause = new MultipleErrors(cause);
}
else {
this.cause = cause;
}
this.name = this.constructor.name;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(new.target.constructor);
}
else {
this.stack = new Error().stack;
}
}
static convertToString(value, unquotValue = false) {

@@ -64,0 +64,0 @@ // Using "null" value intentionally for validation

@@ -71,3 +71,3 @@ import { JsonRpcError, TransactionReceipt, HexString } from 'web3-types';

}
export declare type ProviderErrorData = HexString | {
export type ProviderErrorData = HexString | {
data: HexString;

@@ -104,7 +104,5 @@ } | {

data: string;
errorName?: string | undefined;
errorSignature?: string | undefined;
errorArgs?: {
[x: string]: unknown;
} | undefined;
errorName?: string;
errorSignature?: string;
errorArgs?: { [K in string]: unknown; };
};

@@ -111,0 +109,0 @@ }

{
"name": "web3-errors",
"version": "1.3.1-dev.b3cb1b7.0+b3cb1b7",
"version": "1.3.1-dev.b3ee417.0+b3ee417",
"description": "This package has web3 error classes",

@@ -44,3 +44,3 @@ "main": "./lib/commonjs/index.js",

"dependencies": {
"web3-types": "1.7.1-dev.b3cb1b7.0+b3cb1b7"
"web3-types": "1.9.1-dev.b3ee417.0+b3ee417"
},

@@ -59,5 +59,5 @@ "devDependencies": {

"ts-jest": "^29.1.1",
"typescript": "^4.7.4"
"typescript": "^5.5.4"
},
"gitHead": "b3cb1b782cc2c62bd87909c7cdc426ed43a49c1c"
"gitHead": "b3ee41788cbec9a29a37415565f8adeb6a295fe5"
}

@@ -153,2 +153,3 @@ /*

this.name = ('name' in error && error.name) || this.constructor.name;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
this.stack = ('stack' in error && error.stack) || undefined;

@@ -155,0 +156,0 @@ this.code = error.code;

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

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

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

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