web3-utils
Advanced tools
Comparing version 4.3.2-dev.9b32205.0 to 4.3.2-dev.b86d8ca.0
@@ -265,5 +265,5 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call | ||
if (((schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.format) === undefined) && ((schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.oneOf) !== undefined)) { | ||
if ((schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.format) === undefined && (schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.oneOf) !== undefined) { | ||
for (const [_index, oneOfSchemaProp] of schemaProp.oneOf.entries()) { | ||
if (((oneOfSchemaProp === null || oneOfSchemaProp === void 0 ? void 0 : oneOfSchemaProp.format) !== undefined)) { | ||
if ((oneOfSchemaProp === null || oneOfSchemaProp === void 0 ? void 0 : oneOfSchemaProp.format) !== undefined) { | ||
schemaProp = oneOfSchemaProp; | ||
@@ -273,3 +273,2 @@ break; | ||
} | ||
; | ||
} | ||
@@ -276,0 +275,0 @@ object[key] = (0, exports.convertScalarValue)(value, schemaProp.format, format); |
@@ -260,5 +260,5 @@ /* | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call | ||
if (((schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.format) === undefined) && ((schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.oneOf) !== undefined)) { | ||
if ((schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.format) === undefined && (schemaProp === null || schemaProp === void 0 ? void 0 : schemaProp.oneOf) !== undefined) { | ||
for (const [_index, oneOfSchemaProp] of schemaProp.oneOf.entries()) { | ||
if (((oneOfSchemaProp === null || oneOfSchemaProp === void 0 ? void 0 : oneOfSchemaProp.format) !== undefined)) { | ||
if ((oneOfSchemaProp === null || oneOfSchemaProp === void 0 ? void 0 : oneOfSchemaProp.format) !== undefined) { | ||
schemaProp = oneOfSchemaProp; | ||
@@ -268,3 +268,2 @@ break; | ||
} | ||
; | ||
} | ||
@@ -271,0 +270,0 @@ object[key] = convertScalarValue(value, schemaProp.format, format); |
{ | ||
"name": "web3-utils", | ||
"sideEffects": false, | ||
"version": "4.3.2-dev.9b32205.0+9b32205", | ||
"version": "4.3.2-dev.b86d8ca.0+b86d8ca", | ||
"description": "Collection of utility functions used in web3.js.", | ||
@@ -68,7 +68,7 @@ "main": "./lib/commonjs/index.js", | ||
"eventemitter3": "^5.0.1", | ||
"web3-errors": "1.3.1-dev.9b32205.0+9b32205", | ||
"web3-types": "1.7.1-dev.9b32205.0+9b32205", | ||
"web3-validator": "2.0.7-dev.9b32205.0+9b32205" | ||
"web3-errors": "1.3.1-dev.b86d8ca.0+b86d8ca", | ||
"web3-types": "1.7.1-dev.b86d8ca.0+b86d8ca", | ||
"web3-validator": "2.0.7-dev.b86d8ca.0+b86d8ca" | ||
}, | ||
"gitHead": "9b322052ef266cc57b29080b20053991e0c9a0a9" | ||
"gitHead": "b86d8cae50d60e56e96bde9d1b836ca01ecd0fbc" | ||
} |
@@ -136,5 +136,4 @@ /* | ||
if (baseType === 'string') { | ||
return String(value); | ||
} | ||
return String(value); | ||
} | ||
} catch (error) { | ||
@@ -332,14 +331,14 @@ // If someone didn't use `eth` keyword we can return original value | ||
// The following code is basically saying: | ||
// if the schema specifies oneOf, then we are to loop | ||
// over each possible schema and check if they type of the schema specifies format | ||
// and if so we use the oneOfSchemaProp as the schema for formatting | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call | ||
if ((schemaProp?.format === undefined) && (schemaProp?.oneOf !== undefined)) { | ||
for (const [_index, oneOfSchemaProp] of schemaProp.oneOf.entries()) { | ||
if ((oneOfSchemaProp?.format !== undefined)) { | ||
schemaProp = oneOfSchemaProp; | ||
break; | ||
} | ||
}; | ||
} | ||
// if the schema specifies oneOf, then we are to loop | ||
// over each possible schema and check if they type of the schema specifies format | ||
// and if so we use the oneOfSchemaProp as the schema for formatting | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call | ||
if (schemaProp?.format === undefined && schemaProp?.oneOf !== undefined) { | ||
for (const [_index, oneOfSchemaProp] of schemaProp.oneOf.entries()) { | ||
if (oneOfSchemaProp?.format !== undefined) { | ||
schemaProp = oneOfSchemaProp; | ||
break; | ||
} | ||
} | ||
} | ||
@@ -346,0 +345,0 @@ object[key] = convertScalarValue(value, schemaProp.format as string, format); |
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
541084
10265