css-vendor
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -1,2 +0,2 @@ | ||
## 1.0.3 / 2018-07-03 | ||
## 1.0.3 / 2018-07-04 | ||
@@ -3,0 +3,0 @@ - Fix for dashed property values |
@@ -119,3 +119,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.supportedValue = exports.supportedProperty = exports.prefix = undefined;\n\nvar _prefix = __webpack_require__(/*! ./prefix */ \"./src/prefix.js\");\n\nvar _prefix2 = _interopRequireDefault(_prefix);\n\nvar _supportedProperty = __webpack_require__(/*! ./supported-property */ \"./src/supported-property.js\");\n\nvar _supportedProperty2 = _interopRequireDefault(_supportedProperty);\n\nvar _supportedValue = __webpack_require__(/*! ./supported-value */ \"./src/supported-value.js\");\n\nvar _supportedValue2 = _interopRequireDefault(_supportedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = {\n prefix: _prefix2['default'],\n supportedProperty: _supportedProperty2['default'],\n supportedValue: _supportedValue2['default']\n}; /**\n * CSS Vendor prefix detection and property feature testing.\n *\n * @copyright Oleg Slobodskoi 2015\n * @website https://github.com/jsstyles/css-vendor\n * @license MIT\n */\n\nexports.prefix = _prefix2['default'];\nexports.supportedProperty = _supportedProperty2['default'];\nexports.supportedValue = _supportedValue2['default'];\n\n//# sourceURL=webpack://cssVendor/./src/index.js?"); | ||
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.supportedValue = exports.supportedProperty = exports.supportedKeyframes = exports.prefix = undefined;\n\nvar _prefix = __webpack_require__(/*! ./prefix */ \"./src/prefix.js\");\n\nvar _prefix2 = _interopRequireDefault(_prefix);\n\nvar _supportedKeyframes = __webpack_require__(/*! ./supported-keyframes */ \"./src/supported-keyframes.js\");\n\nvar _supportedKeyframes2 = _interopRequireDefault(_supportedKeyframes);\n\nvar _supportedProperty = __webpack_require__(/*! ./supported-property */ \"./src/supported-property.js\");\n\nvar _supportedProperty2 = _interopRequireDefault(_supportedProperty);\n\nvar _supportedValue = __webpack_require__(/*! ./supported-value */ \"./src/supported-value.js\");\n\nvar _supportedValue2 = _interopRequireDefault(_supportedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * CSS Vendor prefix detection and property feature testing.\n *\n * @copyright Oleg Slobodskoi 2015\n * @website https://github.com/jsstyles/css-vendor\n * @license MIT\n */\n\nexports['default'] = {\n prefix: _prefix2['default'],\n supportedKeyframes: _supportedKeyframes2['default'],\n supportedProperty: _supportedProperty2['default'],\n supportedValue: _supportedValue2['default']\n};\nexports.prefix = _prefix2['default'];\nexports.supportedKeyframes = _supportedKeyframes2['default'];\nexports.supportedProperty = _supportedProperty2['default'];\nexports.supportedValue = _supportedValue2['default'];\n\n//# sourceURL=webpack://cssVendor/./src/index.js?"); | ||
@@ -316,2 +316,14 @@ /***/ }), | ||
/***/ "./src/supported-keyframes.js": | ||
/*!************************************!*\ | ||
!*** ./src/supported-keyframes.js ***! | ||
\************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = supportedKeyframes;\n\nvar _prefix = __webpack_require__(/*! ./prefix */ \"./src/prefix.js\");\n\nvar _prefix2 = _interopRequireDefault(_prefix);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * Test if a keyframe at-rule should be prefixed or not\n *\n * @param {String} vendor prefix string for the current browser.\n * @return {String}\n * @api public\n */\n\nfunction supportedKeyframes(key) {\n // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'\n if (key[1] === '-') return key;\n // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.\n // https://caniuse.com/#search=keyframes\n if (_prefix2['default'].js === 'ms') return key;\n return '@' + _prefix2['default'].css + 'keyframes' + key.substr(10);\n}\n\n//# sourceURL=webpack://cssVendor/./src/supported-keyframes.js?"); | ||
/***/ }), | ||
/***/ "./src/supported-property.js": | ||
@@ -318,0 +330,0 @@ /*!***********************************!*\ |
@@ -1,9 +0,8 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.cssVendor=t():e.cssVendor=t()}(window,function(){return function(e){var t={};function r(u){if(t[u])return t[u].exports;var n=t[u]={i:u,l:!1,exports:{}};return e[u].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,u){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:u})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var u=Object.create(null);if(r.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(u,n,function(t){return e[t]}.bind(null,n));return u},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=21)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u="",n="";if(function(e){return e&&e.__esModule?e:{default:e}}(r(3)).default){var o={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},f=document.createElement("p").style;for(var l in o)if(l+"Transform"in f){u=l,n=o[l];break}"Webkit"===u&&"msHyphens"in f&&(u="ms",n=o.ms)}t.default={js:u,css:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,u.default)("-"+e)};var u=function(e){return e&&e.__esModule?e:{default:e}}(r(2))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(u,n)};var u=/[-\s]+(.)?/g;function n(e,t){return t?t.toUpperCase():""}},function(e,t,r){"use strict";r.r(t),r.d(t,"isBrowser",function(){return n});var u="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},n="object"===("undefined"==typeof window?"undefined":u(window))&&"object"===("undefined"==typeof document?"undefined":u(document))&&9===document.nodeType;t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)return e;if(null!=f[e])return f[e];"transition"!==e&&"transform"!==e||(t[e]=e in o.style);for(var r=0;r<n.propertyDetectors.length&&(f[e]=n.propertyDetectors[r](e,o.style,t),!f[e]);r++);try{o.style[e]=""}catch(e){return!1}return f[e]};var u=function(e){return e&&e.__esModule?e:{default:e}}(r(3)),n=r(20);var o=void 0,f={};if(u.default){o=document.createElement("p");var l=window.getComputedStyle(document.documentElement,"");for(var i in l)isNaN(i)||(f[l[i]]=l[i]);n.noPrefill.forEach(function(e){return delete f[e]})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!d)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var r=e+t;if(null!=l[r])return l[r];try{d.style[e]=t}catch(e){return l[r]=!1,!1}if(i[e])t=t.replace(a,s);else if(""===d.style[e]&&("-ms-flex"===(t=n.default.css+t)&&(t="-ms-flexbox"),d.style[e]=t,""===d.style[e]))return l[r]=!1,!1;return d.style[e]="",l[r]=t,l[r]};var u=f(r(3)),n=f(r(0)),o=f(r(4));function f(e){return e&&e.__esModule?e:{default:e}}var l={},i={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},a=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,d=void 0;function s(e,t,r){return"all"===t?"all":"all"===r?", all":t?(0,o.default)(t):", "+(0,o.default)(r)}u.default&&(d=document.createElement("p"))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===u.default.js||"ms"===u.default.js?u.default.css+e:e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(2));t.default={supportedProperty:function(e,t){return(0,u.default)(e)in t&&e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:u.default.css+e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:u.default.css+e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===u.default.js?u.default.css+"scroll-chaining":e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===u.default.js?""+u.default.css+e:e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}t.default={supportedProperty:function(e,t){var r=(0,n.default)(e);return u.default.js+r in t?u.default.css+e:"Webkit"!==u.default.js&&"Webkit"+r in t&&e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=f(r(0)),n=f(r(1)),o=f(r(2));function f(e){return e&&e.__esModule?e:{default:e}}t.default={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===u.default.js){if((0,o.default)("mask-image")in t)return e;if(u.default.js+(0,n.default)("mask-image")in t)return u.default.css+e}return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}t.default={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===u.default.js)return e;var r=e.replace("-inline","");return u.default.js+(0,n.default)(r)in t&&u.default.css+r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}var f={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"};t.default={supportedProperty:function(e,t){var r=f[e];return!!r&&(u.default.js+(0,n.default)(r)in t&&u.default.css+r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}var f={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},l=Object.keys(f),i=function(e){return u.default.css+e};t.default={supportedProperty:function(e,t,r){var o=r.multiple;if(l.indexOf(e)>-1){var a=f[e];if(!Array.isArray(a))return u.default.js+(0,n.default)(a)in t&&u.default.css+a;if(!o)return!1;for(var d=0;d<a.length;d++)if(!(u.default.js+(0,n.default)(a[0])in t))return!1;return a.map(i)}return!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===u.default.js?u.default.css+"print-"+e:e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}t.default={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===u.default.js?"WebkitColumn"+(0,n.default)(e)in t&&u.default.css+"column-"+e:"Moz"===u.default.js&&("page"+(0,n.default)(e)in t&&"page-"+e))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===u.default.js?"-webkit-"+e:u.default.css+e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noPrefill=t.propertyDetectors=void 0;var u=b(r(19)),n=b(r(18)),o=b(r(17)),f=b(r(16)),l=b(r(15)),i=b(r(14)),a=b(r(13)),d=b(r(12)),s=b(r(11)),c=b(r(10)),p=b(r(9)),y=b(r(8)),_=b(r(7)),v=b(r(6));function b(e){return e&&e.__esModule?e:{default:e}}var m=[u.default,p.default,y.default,a.default,v.default,o.default,n.default,i.default,_.default,d.default,s.default,c.default,l.default,f.default];t.propertyDetectors=m.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),t.noPrefill=m.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(t.noPrefill)),e},[])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var u=f(r(0)),n=f(r(4)),o=f(r(5));function f(e){return e&&e.__esModule?e:{default:e}}t.default={prefix:u.default,supportedProperty:n.default,supportedValue:o.default}, | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.cssVendor=t():e.cssVendor=t()}(window,function(){return function(e){var t={};function r(u){if(t[u])return t[u].exports;var n=t[u]={i:u,l:!1,exports:{}};return e[u].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,u){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:u})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var u=Object.create(null);if(r.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(u,n,function(t){return e[t]}.bind(null,n));return u},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=22)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u="",n="";if(function(e){return e&&e.__esModule?e:{default:e}}(r(3)).default){var o={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},f=document.createElement("p").style;for(var l in o)if(l+"Transform"in f){u=l,n=o[l];break}"Webkit"===u&&"msHyphens"in f&&(u="ms",n=o.ms)}t.default={js:u,css:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,u.default)("-"+e)};var u=function(e){return e&&e.__esModule?e:{default:e}}(r(2))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(u,n)};var u=/[-\s]+(.)?/g;function n(e,t){return t?t.toUpperCase():""}},function(e,t,r){"use strict";r.r(t),r.d(t,"isBrowser",function(){return n});var u="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},n="object"===("undefined"==typeof window?"undefined":u(window))&&"object"===("undefined"==typeof document?"undefined":u(document))&&9===document.nodeType;t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)return e;if(null!=f[e])return f[e];"transition"!==e&&"transform"!==e||(t[e]=e in o.style);for(var r=0;r<n.propertyDetectors.length&&(f[e]=n.propertyDetectors[r](e,o.style,t),!f[e]);r++);try{o.style[e]=""}catch(e){return!1}return f[e]};var u=function(e){return e&&e.__esModule?e:{default:e}}(r(3)),n=r(20);var o=void 0,f={};if(u.default){o=document.createElement("p");var l=window.getComputedStyle(document.documentElement,"");for(var i in l)isNaN(i)||(f[l[i]]=l[i]);n.noPrefill.forEach(function(e){return delete f[e]})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!d)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var r=e+t;if(null!=l[r])return l[r];try{d.style[e]=t}catch(e){return l[r]=!1,!1}if(i[e])t=t.replace(a,s);else if(""===d.style[e]&&("-ms-flex"===(t=n.default.css+t)&&(t="-ms-flexbox"),d.style[e]=t,""===d.style[e]))return l[r]=!1,!1;return d.style[e]="",l[r]=t,l[r]};var u=f(r(3)),n=f(r(0)),o=f(r(4));function f(e){return e&&e.__esModule?e:{default:e}}var l={},i={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},a=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,d=void 0;function s(e,t,r){return"all"===t?"all":"all"===r?", all":t?(0,o.default)(t):", "+(0,o.default)(r)}u.default&&(d=document.createElement("p"))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===u.default.js||"ms"===u.default.js?u.default.css+e:e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(2));t.default={supportedProperty:function(e,t){return(0,u.default)(e)in t&&e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:u.default.css+e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:u.default.css+e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===u.default.js?u.default.css+"scroll-chaining":e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===u.default.js?""+u.default.css+e:e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}t.default={supportedProperty:function(e,t){var r=(0,n.default)(e);return u.default.js+r in t?u.default.css+e:"Webkit"!==u.default.js&&"Webkit"+r in t&&e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=f(r(0)),n=f(r(1)),o=f(r(2));function f(e){return e&&e.__esModule?e:{default:e}}t.default={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===u.default.js){if((0,o.default)("mask-image")in t)return e;if(u.default.js+(0,n.default)("mask-image")in t)return u.default.css+e}return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}t.default={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===u.default.js)return e;var r=e.replace("-inline","");return u.default.js+(0,n.default)(r)in t&&u.default.css+r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}var f={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"};t.default={supportedProperty:function(e,t){var r=f[e];return!!r&&(u.default.js+(0,n.default)(r)in t&&u.default.css+r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}var f={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},l=Object.keys(f),i=function(e){return u.default.css+e};t.default={supportedProperty:function(e,t,r){var o=r.multiple;if(l.indexOf(e)>-1){var a=f[e];if(!Array.isArray(a))return u.default.js+(0,n.default)(a)in t&&u.default.css+a;if(!o)return!1;for(var d=0;d<a.length;d++)if(!(u.default.js+(0,n.default)(a[0])in t))return!1;return a.map(i)}return!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===u.default.js?u.default.css+"print-"+e:e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(r(0)),n=o(r(1));function o(e){return e&&e.__esModule?e:{default:e}}t.default={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===u.default.js?"WebkitColumn"+(0,n.default)(e)in t&&u.default.css+"column-"+e:"Moz"===u.default.js&&("page"+(0,n.default)(e)in t&&"page-"+e))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0));t.default={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===u.default.js?"-webkit-"+e:u.default.css+e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noPrefill=t.propertyDetectors=void 0;var u=b(r(19)),n=b(r(18)),o=b(r(17)),f=b(r(16)),l=b(r(15)),i=b(r(14)),a=b(r(13)),d=b(r(12)),s=b(r(11)),c=b(r(10)),p=b(r(9)),y=b(r(8)),_=b(r(7)),v=b(r(6));function b(e){return e&&e.__esModule?e:{default:e}}var m=[u.default,p.default,y.default,a.default,v.default,o.default,n.default,i.default,_.default,d.default,s.default,c.default,l.default,f.default];t.propertyDetectors=m.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),t.noPrefill=m.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(t.noPrefill)),e},[])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"-"===e[1]?e:"ms"===u.default.js?e:"@"+u.default.css+"keyframes"+e.substr(10)};var u=function(e){return e&&e.__esModule?e:{default:e}}(r(0))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.supportedKeyframes=t.prefix=void 0;var u=l(r(0)),n=l(r(21)),o=l(r(4)),f=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}} | ||
/** | ||
* CSS Vendor prefix detection and property feature testing. | ||
* | ||
* @copyright Oleg Slobodskoi 2015 | ||
* @website https://github.com/jsstyles/css-vendor | ||
* @license MIT | ||
*/ | ||
t.prefix=u.default,t.supportedProperty=n.default,t.supportedValue=o.default}])}); | ||
* CSS Vendor prefix detection and property feature testing. | ||
* | ||
* @copyright Oleg Slobodskoi 2015 | ||
* @website https://github.com/jsstyles/css-vendor | ||
* @license MIT | ||
*/t.default={prefix:u.default,supportedKeyframes:n.default,supportedProperty:o.default,supportedValue:f.default},t.prefix=u.default,t.supportedKeyframes=n.default,t.supportedProperty=o.default,t.supportedValue=f.default}])}); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.supportedValue = exports.supportedProperty = exports.prefix = undefined; | ||
exports.supportedValue = exports.supportedProperty = exports.supportedKeyframes = exports.prefix = undefined; | ||
@@ -13,2 +13,6 @@ var _prefix = require('./prefix'); | ||
var _supportedKeyframes = require('./supported-keyframes'); | ||
var _supportedKeyframes2 = _interopRequireDefault(_supportedKeyframes); | ||
var _supportedProperty = require('./supported-property'); | ||
@@ -24,16 +28,19 @@ | ||
/** | ||
* CSS Vendor prefix detection and property feature testing. | ||
* | ||
* @copyright Oleg Slobodskoi 2015 | ||
* @website https://github.com/jsstyles/css-vendor | ||
* @license MIT | ||
*/ | ||
exports['default'] = { | ||
prefix: _prefix2['default'], | ||
supportedKeyframes: _supportedKeyframes2['default'], | ||
supportedProperty: _supportedProperty2['default'], | ||
supportedValue: _supportedValue2['default'] | ||
}; /** | ||
* CSS Vendor prefix detection and property feature testing. | ||
* | ||
* @copyright Oleg Slobodskoi 2015 | ||
* @website https://github.com/jsstyles/css-vendor | ||
* @license MIT | ||
*/ | ||
}; | ||
exports.prefix = _prefix2['default']; | ||
exports.supportedKeyframes = _supportedKeyframes2['default']; | ||
exports.supportedProperty = _supportedProperty2['default']; | ||
exports.supportedValue = _supportedValue2['default']; |
@@ -41,3 +41,3 @@ 'use strict'; | ||
it('should prefix writing-mode', function () { | ||
it('should prefix writing-mode if needed', function () { | ||
var isPrefixed = false; | ||
@@ -44,0 +44,0 @@ if (_prefix2['default'].js === 'Webkit' || _prefix2['default'].js === 'ms') { |
{ | ||
"name": "css-vendor", | ||
"description": "CSS vendor prefix detection and property feature testing.", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"author": { | ||
@@ -42,7 +42,8 @@ "name": "Oleg Slobodskoi", | ||
"devDependencies": { | ||
"autoprefixer": "^8.5.0", | ||
"autoprefixer": "^8.6.5", | ||
"babel-cli": "^6.5.1", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^8.2.5", | ||
"babel-loader": "^7.1.4", | ||
"babel-loader": "^7.1.5", | ||
"babel-plugin-rewire": "^1.1.0", | ||
"babel-plugin-transform-es2015-spread": "^6.22.0", | ||
@@ -56,3 +57,3 @@ "babel-plugin-transform-es3-member-expression-literals": "^6.8.0", | ||
"es5-shim": "^4.5.10", | ||
"eslint": "^5.0.0", | ||
"eslint": "^5.0.1", | ||
"eslint-config-airbnb": "^17.0.0", | ||
@@ -81,3 +82,3 @@ "eslint-config-jss": "^3.0.0", | ||
"rimraf": "^2.6.2", | ||
"webpack": "^4.14.0", | ||
"webpack": "^4.15.1", | ||
"webpack-cli": "^3.0.8" | ||
@@ -84,0 +85,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
88178
33
1222
0
40