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

compose-form-up

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compose-form-up - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

12

lib/validation.js

@@ -244,3 +244,3 @@ // Dependencies

hideMessage( el )
//hideMessage( el )

@@ -251,4 +251,10 @@ var label = getClosest( el, 'label' ),

if ( label ) {
label.insertAdjacentHTML( 'beforeend', '<span class="validation-message hidden"><span class="validation-message-text" role="alert">' + message + '</span></span>' )
label.lastChild.classList.remove('hidden') // Allow for transition
var existingMessage = label.querySelector( '.validation-message-text' )
if ( !existingMessage ) {
label.insertAdjacentHTML( 'beforeend', '<span class="validation-message"><span class="validation-message-text" role="alert">' + message + '</span></span>' )
} else if ( existingMessage.textContent != message ) {
existingMessage.innerHTML = message
}
}

@@ -255,0 +261,0 @@

{
"name": "compose-form-up",
"version": "1.7.0",
"version": "1.7.1",
"description": "A lightweight HTML5 form validation utility",

@@ -5,0 +5,0 @@ "main": "index.js",

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