New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

use-state-validate

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-state-validate - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "use-state-validate",
"version": "1.0.3",
"version": "1.0.4",
"description": "Custom hook to account for state and validation off single state value",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -9,2 +9,3 @@ # use-state-validate

## Install
``` bash

@@ -34,5 +35,7 @@ npm install use-state-validate --save

const [nameV, setName, cleanName] = useStateValidate("Tim", { required: true
message: {
required: "A name is required"
const [nameV, setName, cleanName] = useStateValidate("Tim", {
required: true
message: {
required: "A name is required"
}
});

@@ -126,3 +129,3 @@ console.log(nameV.value); // Tim

v1.0.0 - Hook has been stable in projects, bumping to initial release
v1.0.1 - v1.0.3 - Readme updates - no code changes
v1.0.1 - v1.0.4 - Readme updates - no code changes
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