web3-errors
Advanced tools
Comparing version 1.0.3-dev.51bc03d.0 to 1.0.3-dev.7d0a91d.0
@@ -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; |
{ | ||
"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
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
391209
6959