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

@mutt/forms

Package Overview
Dependencies
Maintainers
13
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mutt/forms - npm Package Compare versions

Comparing version 2.3.1 to 2.4.0

2

package.json
{
"name": "@mutt/forms",
"version": "2.3.1",
"version": "2.4.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": {

@@ -140,3 +140,16 @@ /**

export class RegexValidator extends Validator {
constructor(pattern, messages) {
constructor(patternParam, messagesParam) {
let pattern, messages
if (
typeof patternParam === "object" &&
patternParam.hasOwnProperty("pattern")
) {
// If patternParam is args then destructure it
;({ pattern, messages } = patternParam)
} else {
pattern = patternParam
messages = messagesParam
}
super(messages)

@@ -143,0 +156,0 @@ this.pattern = pattern

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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