web3-errors
Advanced tools
Comparing version 1.1.3-dev.b8fa712.0 to 1.1.3-dev.c490c18.0
@@ -45,2 +45,8 @@ import { BaseWeb3Error } from '../web3_error_base.js'; | ||
code: number; | ||
readonly props: Record<string, unknown> & { | ||
name?: string; | ||
}; | ||
constructor(message: string, props?: Record<string, unknown> & { | ||
name?: string; | ||
}); | ||
} | ||
@@ -47,0 +53,0 @@ export declare class ExistingPluginNamespaceError extends BaseWeb3Error { |
@@ -76,5 +76,6 @@ "use strict"; | ||
class AbiError extends web3_error_base_js_1.BaseWeb3Error { | ||
constructor() { | ||
super(...arguments); | ||
constructor(message, props) { | ||
super(message); | ||
this.code = error_codes_js_1.ERR_ABI_ENCODING; | ||
this.props = props !== null && props !== void 0 ? props : {}; | ||
} | ||
@@ -81,0 +82,0 @@ } |
@@ -67,5 +67,6 @@ /* | ||
export class AbiError extends BaseWeb3Error { | ||
constructor() { | ||
super(...arguments); | ||
constructor(message, props) { | ||
super(message); | ||
this.code = ERR_ABI_ENCODING; | ||
this.props = props !== null && props !== void 0 ? props : {}; | ||
} | ||
@@ -72,0 +73,0 @@ } |
@@ -45,2 +45,8 @@ import { BaseWeb3Error } from '../web3_error_base.js'; | ||
code: number; | ||
readonly props: Record<string, unknown> & { | ||
name?: string; | ||
}; | ||
constructor(message: string, props?: Record<string, unknown> & { | ||
name?: string; | ||
}); | ||
} | ||
@@ -47,0 +53,0 @@ export declare class ExistingPluginNamespaceError extends BaseWeb3Error { |
{ | ||
"name": "web3-errors", | ||
"version": "1.1.3-dev.b8fa712.0+b8fa712", | ||
"version": "1.1.3-dev.c490c18.0+c490c18", | ||
"description": "This package has web3 error classes", | ||
@@ -28,3 +28,3 @@ "main": "./lib/commonjs/index.js", | ||
"prebuild": "yarn clean", | ||
"build": "yarn build:cjs & yarn build:esm & yarn build:types", | ||
"build": "concurrently --kill-others-on-fail \"yarn:build:*(!check)\"", | ||
"build:cjs": "tsc --build tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./lib/commonjs/package.json", | ||
@@ -45,3 +45,3 @@ "build:esm": "tsc --build tsconfig.esm.json && echo '{\"type\": \"module\"}' > ./lib/esm/package.json", | ||
"dependencies": { | ||
"web3-types": "1.2.1-dev.b8fa712.0+b8fa712" | ||
"web3-types": "1.2.1-dev.c490c18.0+c490c18" | ||
}, | ||
@@ -62,3 +62,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "b8fa7124d1d1e4c9c16b60ad2ce58559f72efd27" | ||
"gitHead": "c490c1814da646a83c6a5f7fee643e35507c9344" | ||
} |
@@ -86,2 +86,8 @@ /* | ||
public code = ERR_ABI_ENCODING; | ||
public readonly props: Record<string, unknown> & { name?: string }; | ||
public constructor(message: string, props?: Record<string, unknown> & { name?: string }) { | ||
super(message); | ||
this.props = props ?? {}; | ||
} | ||
} | ||
@@ -88,0 +94,0 @@ |
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
398655
7079