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

@neonjungle/birdseed

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neonjungle/birdseed - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

14

forms/validatedform/index.js

@@ -17,3 +17,8 @@ import Choices from "choices.js";

*/
constructor(formElement, fieldContainerSelector, fieldSelector) {
constructor(
formElement,
fieldContainerSelector,
fieldSelector,
errorClassPrefix
) {
if (!formElement) {

@@ -30,2 +35,3 @@ console.error(

"input:not([data-novalidate]), select:not([data-novalidate]), textarea:not([data-novalidate])";
this.errorClassPrefix = errorClassPrefix | "form-field";
this.valid = true;

@@ -78,3 +84,3 @@ this.formFieldContainers = this.formElement.querySelectorAll(

$fieldContainer.querySelectorAll(this.fieldSelector).forEach($field => {
$field.addEventListener("blur", e =>
$field.addEventListener("blur", _ =>
this.runValidation.call(this, [$fieldContainer])

@@ -115,3 +121,3 @@ );

const $errorMessagesContainer = $fieldContainer.querySelector(
`.${this.fieldContainerSelector}--error-messages`
`.${this.errorClassPrefix}--error-messages`
);

@@ -127,3 +133,3 @@

`<p class="${
this.fieldContainerSelector
this.errorClassPrefix
}--error-messages-single">${error}</p>`

@@ -130,0 +136,0 @@ );

{
"name": "@neonjungle/birdseed",
"version": "0.3.3",
"version": "0.3.4",
"description": "Collection of handy utility methods for Neon Jungle",

@@ -5,0 +5,0 @@ "main": "",

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