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

handcuffs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handcuffs - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

12

dist/browser/cjs/index.js

@@ -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",

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