Socket
Socket
Sign inDemoInstall

web3-errors

Package Overview
Dependencies
Maintainers
4
Versions
309
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.0.3-dev.51bc03d.0 to 1.0.3-dev.7d0a91d.0

6

lib/commonjs/errors/transaction_errors.js

@@ -346,7 +346,3 @@ "use strict";

const invalidPropertyNames = [];
validationError.forEach(error => invalidPropertyNames.push(
// These errors are erroneously reported, error
// has type Web3ValidationErrorObject, but eslint doesn't recognize it
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
error.keyword.match(/data.(.+)/)[1]));
validationError.forEach(error => invalidPropertyNames.push(error.keyword));
super(`The following properties are invalid for the transaction type ${txType}: ${invalidPropertyNames.join(', ')}`);

@@ -353,0 +349,0 @@ this.code = error_codes_js_1.ERR_TX_INVALID_PROPERTIES_FOR_TYPE;

@@ -304,7 +304,3 @@ /*

const invalidPropertyNames = [];
validationError.forEach(error => invalidPropertyNames.push(
// These errors are erroneously reported, error
// has type Web3ValidationErrorObject, but eslint doesn't recognize it
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
error.keyword.match(/data.(.+)/)[1]));
validationError.forEach(error => invalidPropertyNames.push(error.keyword));
super(`The following properties are invalid for the transaction type ${txType}: ${invalidPropertyNames.join(', ')}`);

@@ -311,0 +307,0 @@ this.code = ERR_TX_INVALID_PROPERTIES_FOR_TYPE;

6

package.json
{
"name": "web3-errors",
"version": "1.0.3-dev.51bc03d.0+51bc03d",
"version": "1.0.3-dev.7d0a91d.0+7d0a91d",
"description": "This package has web3 error classes",

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

"dependencies": {
"web3-types": "1.0.3-dev.51bc03d.0+51bc03d"
"web3-types": "1.0.3-dev.7d0a91d.0+7d0a91d"
},

@@ -61,3 +61,3 @@ "devDependencies": {

},
"gitHead": "51bc03dd15dbb9619e77b81c474ab251f9afcfec"
"gitHead": "7d0a91d7011d5fd08f4d72193bd799fec2e30f2f"
}

@@ -558,10 +558,3 @@ /*

const invalidPropertyNames: string[] = [];
validationError.forEach(error =>
invalidPropertyNames.push(
// These errors are erroneously reported, error
// has type Web3ValidationErrorObject, but eslint doesn't recognize it
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
(error.keyword.match(/data.(.+)/) as string[])[1],
),
);
validationError.forEach(error => invalidPropertyNames.push(error.keyword));
super(

@@ -568,0 +561,0 @@ `The following properties are invalid for the transaction type ${txType}: ${invalidPropertyNames.join(

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