@toolz/allow
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@toolz/allow", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Provides validation of data types", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -6,2 +6,7 @@ import { isARegularObject } from '@toolz/is-a-regular-object'; | ||
let failureBehavior = 'throw'; | ||
const failureBehaviorOptions = { | ||
ignore: 'ignore', | ||
throw: 'throw', | ||
warn: 'warn', | ||
}; | ||
let onFailure = () => { | ||
@@ -210,3 +215,3 @@ // | ||
const setFailureBehavior = behavior => { | ||
oneOf(behavior, ['ignore', 'throw', 'warn']); | ||
oneOf(behavior, failureBehaviorOptions); | ||
failureBehavior = behavior; | ||
@@ -239,2 +244,3 @@ }; | ||
fail, | ||
failureBehaviorOptions, | ||
getAllowNull, | ||
@@ -241,0 +247,0 @@ getFailureBehavior, |
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
82940
1139