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

recassfov

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recassfov - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

src/objectToUrlEncoded.js

9

example/index.jsx

@@ -45,3 +45,2 @@ import React from 'react'

postUrl='https://runkit.io/ozgrozer/recassfov-backend-demo/branches/master/signup'
disableOnSubmit
>

@@ -81,2 +80,10 @@ <h2>Sign up</h2>

<div>
<Input
type='checkbox'
name='rememberMe'
placeholder='remember me'
/>
</div>
<div>
<input type='submit' value='submit' />

@@ -83,0 +90,0 @@ </div>

2

package.json
{
"name": "recassfov",
"version": "0.0.11",
"version": "0.0.12",
"description": "React Client and Server Side Form Validation",

@@ -5,0 +5,0 @@ "main": "./npm/Recassfov.js",

@@ -5,13 +5,3 @@ import React from 'react'

const objectToUrlEncoded = (element, key, list) => {
list = list || []
if (typeof element === 'object') {
for (let idx in element) {
objectToUrlEncoded(element[idx], key ? key + '[' + idx + ']' : idx, list)
}
} else {
list.push(key + '=' + encodeURIComponent(element))
}
return list.join('&')
}
import objectToUrlEncoded from './objectToUrlEncoded'

@@ -35,3 +25,3 @@ const Context = React.createContext()

validations: item.validations || [],
invalidFeedback: item.validations[0].invalidFeedback || '',
invalidFeedback: item.validations ? item.validations[0].invalidFeedback : '',
className: ''

@@ -43,3 +33,3 @@ }

this.setState((prevState) => ({
totalValidations: prevState.totalValidations + item.validations.length
totalValidations: prevState.totalValidations + (item.validations ? item.validations.length : 0)
}))

@@ -46,0 +36,0 @@ }

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