Comparing version 4.51.0 to 4.51.1
@@ -1130,2 +1130,12 @@ 'use strict'; | ||
case 'not': | ||
if (_rollupPluginBabelHelpers["typeof"](value) === 'object' && value["enum"]) { | ||
if (Array.isArray(value["enum"]) && !Array.isArray(propertyValue)) { | ||
return !value["enum"].includes(propertyValue); | ||
} | ||
if (Array.isArray(value["enum"]) && Array.isArray(propertyValue)) { | ||
return !propertyValue.every(function (a) { | ||
return value["enum"].includes(a); | ||
}); | ||
} | ||
} | ||
return propertyValue !== value; | ||
@@ -1132,0 +1142,0 @@ default: |
@@ -1126,2 +1126,12 @@ import { createClass as _createClass, typeof as _typeof, createForOfIteratorHelper as _createForOfIteratorHelper, toConsumableArray as _toConsumableArray, objectSpread2 as _objectSpread2, slicedToArray as _slicedToArray, classCallCheck as _classCallCheck } from './_virtual/_rollupPluginBabelHelpers.js'; | ||
case 'not': | ||
if (_typeof(value) === 'object' && value["enum"]) { | ||
if (Array.isArray(value["enum"]) && !Array.isArray(propertyValue)) { | ||
return !value["enum"].includes(propertyValue); | ||
} | ||
if (Array.isArray(value["enum"]) && Array.isArray(propertyValue)) { | ||
return !propertyValue.every(function (a) { | ||
return value["enum"].includes(a); | ||
}); | ||
} | ||
} | ||
return propertyValue !== value; | ||
@@ -1128,0 +1138,0 @@ default: |
{ | ||
"name": "informed", | ||
"version": "4.51.0", | ||
"version": "4.51.1", | ||
"description": "A lightweight framework and utility for building powerful forms in React applications", | ||
@@ -5,0 +5,0 @@ "type": "module", |
581106
14926