fela-plugin-validator
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -43,2 +43,12 @@ (function (global, factory) { | ||
babelHelpers.toConsumableArray = function (arr) { | ||
if (Array.isArray(arr)) { | ||
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; | ||
return arr2; | ||
} else { | ||
return Array.from(arr); | ||
} | ||
}; | ||
babelHelpers; | ||
@@ -45,0 +55,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.FelaPluginValidator=t()}(this,function(){"use strict";function e(t,r,n){for(var o in t){var a=t[o];a instanceof Object&&!Array.isArray(a)&&(/^(@media|:|\[|>)/.test(o)?e(a,r,n):(n&&delete t[o],r&&console.error((n?"[Deleted] ":" ")+"Invalid nested property. Only use nested `@media` queries or `:` pseudo classes.\n Maybe you forgot to add a plugin that resolves `"+o+"`.",{property:o,value:a})))}}function t(t,r,a){var l=a.logInvalid,i=a.deleteInvalid;if(r===o)for(var f in t){var d=parseFloat(f),u=t[f];u instanceof Object==!1?(l&&console.error((i?"[Deleted] ":" ")+"Invalid keyframe value. An object was expected.",{percentage:f,style:u}),i&&delete t[f]):(!f.match(/from|to|%/)||f.indexOf("%")>-1&&(d<0||d>100))&&(l&&console.error((i?"[Deleted] ":" ")+"Invalid keyframe property.\n Expected either `to`, `from` or a percentage value between 0 and 100.",{percentage:f,style:u}),i&&delete t[f])}else r===n&&e(t,l,i);return t}var r={};r.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},r.extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};var n=1,o=2,a={logInvalid:!0,deleteInvalid:!1},l=function(e){return function(n,o,l){return t(n,l,r.extends({},a,e))}};return l}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.FelaPluginValidator=r()}(this,function(){"use strict";function e(r,t,n){for(var o in r){var a=r[o];a instanceof Object&&!Array.isArray(a)&&(/^(@media|:|\[|>)/.test(o)?e(a,t,n):(n&&delete r[o],t&&console.error((n?"[Deleted] ":" ")+"Invalid nested property. Only use nested `@media` queries or `:` pseudo classes.\n Maybe you forgot to add a plugin that resolves `"+o+"`.",{property:o,value:a})))}}function r(r,t,a){var l=a.logInvalid,i=a.deleteInvalid;if(t===o)for(var f in r){var u=parseFloat(f),d=r[f];d instanceof Object==!1?(l&&console.error((i?"[Deleted] ":" ")+"Invalid keyframe value. An object was expected.",{percentage:f,style:d}),i&&delete r[f]):(!f.match(/from|to|%/)||f.indexOf("%")>-1&&(u<0||u>100))&&(l&&console.error((i?"[Deleted] ":" ")+"Invalid keyframe property.\n Expected either `to`, `from` or a percentage value between 0 and 100.",{percentage:f,style:d}),i&&delete r[f])}else t===n&&e(r,l,i);return r}var t={};t.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.defineProperty=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},t.extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},t.toConsumableArray=function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}return Array.from(e)};var n=1,o=2,a={logInvalid:!0,deleteInvalid:!1},l=function(e){return function(n,o,l){return r(n,l,t.extends({},a,e))}};return l}); |
{ | ||
"name": "fela-plugin-validator", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "Fela plugin to validate style objects", | ||
@@ -23,4 +23,4 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"fela": "4.2.2" | ||
"fela": "4.2.3" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # fela-plugin-validator | ||
<img alt="npm downloads" src="https://img.shields.io/npm/dm/fela-plugin-validator.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-0.86kb-brightgreen.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-0.91kb-brightgreen.svg"> | ||
@@ -19,5 +19,5 @@ Enforces object validation for keyframes and rules. | ||
<!-- Fela (Development): Unminified version including all warnings --> | ||
<script src="https://unpkg.com/fela-plugin-validator@4.2.2/dist/fela-plugin-validator.js"></script> | ||
<script src="https://unpkg.com/fela-plugin-validator@4.2.3/dist/fela-plugin-validator.js"></script> | ||
<!-- Fela (Production): Minified version --> | ||
<script src="https://unpkg.com/fela-plugin-validator@4.2.2/dist/fela-plugin-validator.min.js"></script> | ||
<script src="https://unpkg.com/fela-plugin-validator@4.2.3/dist/fela-plugin-validator.min.js"></script> | ||
``` | ||
@@ -24,0 +24,0 @@ |
Sorry, the diff of this file is not supported yet
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
15884
118