Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web3-validator

Package Overview
Dependencies
Maintainers
5
Versions
340
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-validator - npm Package Compare versions

Comparing version 2.0.6-dev.f44dc5b.0 to 2.0.6-dev.f4e55bd.0

4

lib/commonjs/validation/numbers.js

@@ -31,2 +31,6 @@ "use strict";

const bigintPower = (base, expo) => {
// edge case
if (expo === BigInt(0)) {
return BigInt(1);
}
let res = base;

@@ -33,0 +37,0 @@ for (let index = 1; index < expo; index += 1) {

@@ -27,2 +27,6 @@ /*

export const bigintPower = (base, expo) => {
// edge case
if (expo === BigInt(0)) {
return BigInt(1);
}
let res = base;

@@ -29,0 +33,0 @@ for (let index = 1; index < expo; index += 1) {

9

package.json
{
"name": "web3-validator",
"version": "2.0.6-dev.f44dc5b.0+f44dc5b",
"version": "2.0.6-dev.f4e55bd.0+f4e55bd",
"description": "JSON-Schema compatible validator for web3",

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

},
"browser": "./dist/web3-validator.min.js",
"repository": "https://github.com/ChainSafe/web3.js",

@@ -51,4 +50,4 @@ "author": "ChainSafe Systems",

"util": "^0.12.5",
"web3-errors": "1.1.5-dev.f44dc5b.0+f44dc5b",
"web3-types": "1.6.1-dev.f44dc5b.0+f44dc5b",
"web3-errors": "1.1.5-dev.f4e55bd.0+f4e55bd",
"web3-types": "1.6.1-dev.f4e55bd.0+f4e55bd",
"zod": "^3.21.4"

@@ -70,3 +69,3 @@ },

},
"gitHead": "f44dc5b6ad00648bff4abfc4339386ed6076275a"
"gitHead": "f4e55bd30441b8e69c822d5ff1c6041291fd5a09"
}

@@ -31,2 +31,6 @@ /*

export const bigintPower = (base: bigint, expo: bigint) => {
// edge case
if (expo === BigInt(0)) {
return BigInt(1);
}
let res = base;

@@ -33,0 +37,0 @@ for (let index = 1; index < expo; index += 1) {

Sorry, the diff of this file is too big to display

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

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