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

@uform/validator

Package Overview
Dependencies
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uform/validator - npm Package Compare versions

Comparing version 0.1.0-beta.16 to 0.1.0-beta.17

5

lib/validators/pattern.js

@@ -12,2 +12,7 @@ "use strict";

if ((0, _utils.isEmpty)(value)) return '';
if ((0, _utils.isRegExp)(pattern)) {
pattern.lastIndex = 0;
}
var valid = (0, _utils.isFn)(pattern) ? pattern(value) : (0, _utils.isRegExp)(pattern) ? pattern.test(String(value)) : new RegExp(String(pattern)).test(String(value));

@@ -14,0 +19,0 @@ return !valid ? message : '';

4

package.json
{
"name": "@uform/validator",
"version": "0.1.0-beta.16",
"version": "0.1.0-beta.17",
"license": "MIT",

@@ -23,3 +23,3 @@ "main": "lib",

},
"gitHead": "0e711f01dec70c4848e00ded5b0c769d9f3d72ad"
"gitHead": "6ee184b0dcadfea67fcb28cd8c051b4c388547e5"
}

@@ -6,2 +6,5 @@ import { isRegExp, format, isFn, isEmpty } from '../utils'

if (isEmpty(value)) return ''
if (isRegExp(pattern)) {
pattern.lastIndex = 0
}
const valid = isFn(pattern)

@@ -8,0 +11,0 @@ ? pattern(value)

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