Comparing version 0.4.0 to 0.4.1
@@ -212,3 +212,3 @@ 'use strict'; | ||
function alphaNum$1(value) { | ||
function alphaNumDash(value) { | ||
return (string(value) || isNumber(value)) && /^$|^[a-z0-9_-]+$/i.test(value); | ||
@@ -231,3 +231,3 @@ } | ||
function min(value, params, rules) { | ||
function max(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'max'); | ||
@@ -238,3 +238,3 @@ var valueSize = getValueSize(value, rules); | ||
function min$1(value, params, rules) { | ||
function min(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'min'); | ||
@@ -266,8 +266,8 @@ var valueSize = getValueSize(value, rules); | ||
alphaNum: alphaNum, | ||
alphaNumDash: alphaNum$1, | ||
alphaNumDash: alphaNumDash, | ||
array: array, | ||
between: between, | ||
boolean: boolean, | ||
max: min, | ||
min: min$1, | ||
max: max, | ||
min: min, | ||
numeric: numeric, | ||
@@ -274,0 +274,0 @@ required: required, |
@@ -204,3 +204,3 @@ import isNumber from 'is-number'; | ||
function alphaNum$1(value) { | ||
function alphaNumDash(value) { | ||
return (string(value) || isNumber(value)) && /^$|^[a-z0-9_-]+$/i.test(value); | ||
@@ -223,3 +223,3 @@ } | ||
function min(value, params, rules) { | ||
function max(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'max'); | ||
@@ -230,3 +230,3 @@ var valueSize = getValueSize(value, rules); | ||
function min$1(value, params, rules) { | ||
function min(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'min'); | ||
@@ -258,8 +258,8 @@ var valueSize = getValueSize(value, rules); | ||
alphaNum: alphaNum, | ||
alphaNumDash: alphaNum$1, | ||
alphaNumDash: alphaNumDash, | ||
array: array, | ||
between: between, | ||
boolean: boolean, | ||
max: min, | ||
min: min$1, | ||
max: max, | ||
min: min, | ||
numeric: numeric, | ||
@@ -266,0 +266,0 @@ required: required, |
@@ -89,3 +89,3 @@ 'use strict'; | ||
function alphaNum$1(value) { | ||
function alphaNumDash(value) { | ||
return (string(value) || isNumber(value)) && /^$|^[a-z0-9_-]+$/i.test(value); | ||
@@ -108,3 +108,3 @@ } | ||
function min(value, params, rules) { | ||
function max(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'max'); | ||
@@ -115,3 +115,3 @@ const valueSize = getValueSize(value, rules); | ||
function min$1(value, params, rules) { | ||
function min(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'min'); | ||
@@ -143,8 +143,8 @@ const valueSize = getValueSize(value, rules); | ||
alphaNum, | ||
alphaNumDash: alphaNum$1, | ||
alphaNumDash, | ||
array, | ||
between, | ||
boolean, | ||
max: min, | ||
min: min$1, | ||
max, | ||
min, | ||
numeric, | ||
@@ -151,0 +151,0 @@ required, |
@@ -81,3 +81,3 @@ import isNumber from 'is-number'; | ||
function alphaNum$1(value) { | ||
function alphaNumDash(value) { | ||
return (string(value) || isNumber(value)) && /^$|^[a-z0-9_-]+$/i.test(value); | ||
@@ -100,3 +100,3 @@ } | ||
function min(value, params, rules) { | ||
function max(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'max'); | ||
@@ -107,3 +107,3 @@ const valueSize = getValueSize(value, rules); | ||
function min$1(value, params, rules) { | ||
function min(value, params, rules) { | ||
checkRuleParamsCount(params, 1, 'min'); | ||
@@ -135,8 +135,8 @@ const valueSize = getValueSize(value, rules); | ||
alphaNum, | ||
alphaNumDash: alphaNum$1, | ||
alphaNumDash, | ||
array, | ||
between, | ||
boolean, | ||
max: min, | ||
min: min$1, | ||
max, | ||
min, | ||
numeric, | ||
@@ -143,0 +143,0 @@ required, |
{ | ||
"name": "handcuffs", | ||
"description": "Async validation library for node and browser", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "Vlad Shcherbin <vlad.shcherbin@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": "VladShcherbin/handcuffs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
56920