@toolz/allow
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@toolz/allow", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Provides validation of data types", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import { isARegularObject } from '@toolz/is-a-regular-object'; | ||
export const failureBehavior = { | ||
IGNORE: 'ignore', | ||
THROW: 'throw', | ||
WARN: 'warn', | ||
}; | ||
const Allow = () => { | ||
let allowNull = false; | ||
const failureBehavior = { | ||
IGNORE: 'ignore', | ||
THROW: 'throw', | ||
WARN: 'warn', | ||
}; | ||
let currentFailureBehavior = failureBehavior.THROW; | ||
@@ -243,2 +242,3 @@ let onFailure = () => { | ||
fail, | ||
failureBehavior, | ||
getAllowNull, | ||
@@ -245,0 +245,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
82968
1139