Socket
Socket
Sign inDemoInstall

@toolz/allow

Package Overview
Dependencies
1
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc