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

spemailhandler

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spemailhandler - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

3

dist/index.js

@@ -23,2 +23,5 @@ "use strict";

isEmail(email) {
if (email.length > 254) {
return false;
}
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

@@ -25,0 +28,0 @@ return emailPattern.test(email);

2

package.json
{
"name": "spemailhandler",
"version": "1.0.3",
"version": "1.0.4",
"description": "A script to handle the interaction between a Bootstrap-based contact form and the server, handling form submission and feedback.",

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

@@ -62,3 +62,3 @@ # SPEmailHandler - Contact Form Script

Alert for Displaying Errors
Success Modal
```html

@@ -65,0 +65,0 @@ <div class="modal fade" id="success" tabindex="-1" aria-labelledby="successLabel" aria-hidden="true">

@@ -33,2 +33,5 @@ import "bootstrap";

isEmail(email: string): boolean {
if (email.length > 254) {
return false;
}
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

@@ -35,0 +38,0 @@ return emailPattern.test(email);

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