web3-validator
Advanced tools
Comparing version 2.0.5 to 2.0.6-dev.12c2515.0
@@ -114,3 +114,3 @@ "use strict"; | ||
abiType = abi.type; | ||
abiName = abi.name; | ||
abiName = abi.name || `${level}/${index}`; | ||
abiComponents = abi.components; | ||
@@ -117,0 +117,0 @@ // If its short form string value e.g. ['uint'] |
@@ -25,3 +25,3 @@ "use strict"; | ||
*/ | ||
const isUint8Array = (data) => { var _a; return data instanceof Uint8Array || ((_a = data === null || data === void 0 ? void 0 : data.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'Uint8Array'; }; | ||
const isUint8Array = (data) => { var _a, _b; return data instanceof Uint8Array || ((_a = data === null || data === void 0 ? void 0 : data.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'Uint8Array' || ((_b = data === null || data === void 0 ? void 0 : data.constructor) === null || _b === void 0 ? void 0 : _b.name) === 'Buffer'; }; | ||
exports.isUint8Array = isUint8Array; | ||
@@ -28,0 +28,0 @@ const isBytes = (value, options = { |
@@ -110,3 +110,3 @@ /* | ||
abiType = abi.type; | ||
abiName = abi.name; | ||
abiName = abi.name || `${level}/${index}`; | ||
abiComponents = abi.components; | ||
@@ -113,0 +113,0 @@ // If its short form string value e.g. ['uint'] |
@@ -22,3 +22,3 @@ /* | ||
*/ | ||
export const isUint8Array = (data) => { var _a; return data instanceof Uint8Array || ((_a = data === null || data === void 0 ? void 0 : data.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'Uint8Array'; }; | ||
export const isUint8Array = (data) => { var _a, _b; return data instanceof Uint8Array || ((_a = data === null || data === void 0 ? void 0 : data.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'Uint8Array' || ((_b = data === null || data === void 0 ? void 0 : data.constructor) === null || _b === void 0 ? void 0 : _b.name) === 'Buffer'; }; | ||
export const isBytes = (value, options = { | ||
@@ -25,0 +25,0 @@ abiType: 'bytes', |
{ | ||
"name": "web3-validator", | ||
"version": "2.0.5", | ||
"version": "2.0.6-dev.12c2515.0+12c2515", | ||
"description": "JSON-Schema compatible validator for web3", | ||
@@ -36,3 +36,3 @@ "main": "./lib/commonjs/index.js", | ||
"build:check": "node -e \"require('./lib')\"", | ||
"lint": "eslint --ext .js,.ts .", | ||
"lint": "eslint --cache --cache-strategy content --ext .ts .", | ||
"lint:fix": "eslint --fix --ext .js,.ts .", | ||
@@ -51,4 +51,4 @@ "format": "prettier --write '**/*'", | ||
"util": "^0.12.5", | ||
"web3-errors": "^1.1.4", | ||
"web3-types": "^1.5.0", | ||
"web3-errors": "1.1.5-dev.12c2515.0+12c2515", | ||
"web3-types": "1.6.1-dev.12c2515.0+12c2515", | ||
"zod": "^3.21.4" | ||
@@ -70,3 +70,3 @@ }, | ||
}, | ||
"gitHead": "7379a3bb3c274eff76c64b2447e95c34282e04fd" | ||
"gitHead": "12c251589198129781d24d2327d67ead9f20b3e8" | ||
} |
@@ -144,3 +144,3 @@ /* | ||
abiType = abi.type; | ||
abiName = abi.name; | ||
abiName = abi.name || `${level}/${index}`; | ||
abiComponents = abi.components as FullValidationSchema; | ||
@@ -147,0 +147,0 @@ // If its short form string value e.g. ['uint'] |
@@ -26,3 +26,3 @@ /* | ||
export const isUint8Array = (data: ValidInputTypes): data is Uint8Array => | ||
data instanceof Uint8Array || data?.constructor?.name === 'Uint8Array'; | ||
data instanceof Uint8Array || data?.constructor?.name === 'Uint8Array' || data?.constructor?.name === 'Buffer'; | ||
@@ -29,0 +29,0 @@ export const isBytes = ( |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
955902
184
5623
306
16
30
7
237
2
1
- Removedweb3-errors@1.3.0(transitive)
- Removedweb3-types@1.8.0(transitive)