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.de3e8f8.0 to 2.0.6-dev.e0fc158.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) {

11

package.json
{
"name": "web3-validator",
"version": "2.0.6-dev.de3e8f8.0+de3e8f8",
"version": "2.0.6-dev.e0fc158.0+e0fc158",
"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",

@@ -37,3 +36,3 @@ "author": "ChainSafe Systems",

"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 .",

@@ -52,4 +51,4 @@ "format": "prettier --write '**/*'",

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

@@ -71,3 +70,3 @@ },

},
"gitHead": "de3e8f881cc12ca6bbeddaf992c18c6c4eb1ede0"
"gitHead": "e0fc158e7c18ab97b66e415653faad46491823c0"
}

@@ -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