Socket
Socket
Sign inDemoInstall

@toolz/allow

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toolz/allow - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

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

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