css-vendor
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -0,1 +1,6 @@ | ||
## 2.0.6 / 2019-08-15 | ||
- Freed from prefixing values when content property used | ||
- Update dependencies | ||
## 2.0.5 / 2019-06-20 | ||
@@ -2,0 +7,0 @@ |
@@ -513,3 +513,3 @@ 'use strict'; | ||
var prefixedValue = value; | ||
if (!el$1) return value; // It is a string or a number as a string like '1'. | ||
if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'. | ||
// We want only prefixable values here. | ||
@@ -516,0 +516,0 @@ // eslint-disable-next-line no-restricted-globals |
@@ -507,3 +507,3 @@ import isInBrowser from 'is-in-browser'; | ||
var prefixedValue = value; | ||
if (!el$1) return value; // It is a string or a number as a string like '1'. | ||
if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'. | ||
// We want only prefixable values here. | ||
@@ -510,0 +510,0 @@ // eslint-disable-next-line no-restricted-globals |
@@ -470,3 +470,3 @@ (function (global, factory) { | ||
if (cache[prop] != null) { | ||
if ( cache[prop] != null) { | ||
return cache[prop]; | ||
@@ -537,3 +537,3 @@ } // Check if 'transition' or 'transform' natively supported in browser. | ||
var prefixedValue = value; | ||
if (!el$1) return value; // It is a string or a number as a string like '1'. | ||
if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'. | ||
// We want only prefixable values here. | ||
@@ -549,3 +549,3 @@ // eslint-disable-next-line no-restricted-globals | ||
if (cache$1[cacheKey] != null) { | ||
if ( cache$1[cacheKey] != null) { | ||
return cache$1[cacheKey]; | ||
@@ -552,0 +552,0 @@ } // IE can even throw an error in some cases, for e.g. style.content = 'bar'. |
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).cssVendor={})}(this,function(e){"use strict";var r="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="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType,n="",o="",i="",s="",u=t&&"ontouchstart"in document.documentElement;if(t){var f={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},p=document.createElement("p").style;for(var l in f)if(l+"Transform"in p){n=l,o=f[l];break}"Webkit"===n&&"msHyphens"in p&&(n="ms",o=f.ms,s="edge"),"Webkit"===n&&"-apple-trailing-word"in p&&(i="apple")}var a={js:n,css:o,vendor:i,browser:s,isTouch:u};function c(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===a.js?"-webkit-"+e:a.css+e)}},y=/[-\s]+(.)?/g;function m(e,r){return r?r.toUpperCase():""}function b(e){return e.replace(y,m)}function x(e){return b("-"+e)}var g,j={supportedProperty:function(e,r){return!!/^break-/.test(e)&&("Webkit"===a.js?"WebkitColumn"+x(e)in r&&a.css+"column-"+e:"Moz"===a.js&&("page"+x(e)in r&&"page-"+e))}},v={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===a.js?a.css+"print-"+e:e)}},P={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"},k=Object.keys(P),w=function(e){return a.css+e},h={"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"},W=[d,v,{noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if("Webkit"===a.js){if(b("mask-image")in r)return e;if(a.js+x("mask-image")in r)return a.css+e}return e}},{noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==a.vendor||a.isTouch?e:a.css+e)}},{noPrefill:["transform"],supportedProperty:function(e,r,t){return"transform"===e&&(t.transform?e:a.css+e)}},{noPrefill:["transition"],supportedProperty:function(e,r,t){return"transition"===e&&(t.transition?e:a.css+e)}},{noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===a.js||"ms"===a.js?a.css+e:e)}},j,{supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===a.js)return e;var t=e.replace("-inline","");return a.js+x(t)in r&&a.css+t}},{supportedProperty:function(e,r){return b(e)in r&&e}},{supportedProperty:function(e,r){var t=x(e);return"-"===e[0]?e:"-"===e[0]&&"-"===e[1]?e:a.js+t in r?a.css+e:"Webkit"!==a.js&&"Webkit"+t in r&&"-webkit-"+e}},{supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===a.js?""+a.css+e:e)}},{supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===a.js?a.css+"scroll-chaining":e)}},{supportedProperty:function(e,r){var t=h[e];return!!t&&(a.js+x(t)in r&&a.css+t)}},{supportedProperty:function(e,r,t){var n=t.multiple;if(k.indexOf(e)>-1){var o=P[e];if(!Array.isArray(o))return a.js+x(o)in r&&a.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(a.js+x(o[0])in r))return!1;return o.map(w)}return!1}}],S=W.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),A=W.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,c(r.noPrefill)),e},[]),E={};if(t){g=document.createElement("p");var O=window.getComputedStyle(document.documentElement,"");for(var z in O)isNaN(z)||(E[O[z]]=O[z]);A.forEach(function(e){return delete E[e]})}function T(e,r){if(void 0===r&&(r={}),!g)return e;if(null!=E[e])return E[e];"transition"!==e&&"transform"!==e||(r[e]=e in g.style);for(var t=0;t<S.length&&(E[e]=S[t](e,g.style,r),!E[e]);t++);try{g.style[e]=""}catch(e){return!1}return E[e]}var M,N={},C={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},I=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function V(e,r,t){return"var"===r?"var":"all"===r?"all":"all"===t?", all":r?T(r):", "+T(t)}t&&(M=document.createElement("p")),e.prefix=a,e.supportedKeyframes=function(e){return"-"===e[1]?e:"ms"===a.js?e:"@"+a.css+"keyframes"+e.substr(10)},e.supportedProperty=T,e.supportedValue=function(e,r){var t=r;if(!M)return r;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=N[n])return N[n];try{M.style[e]=t}catch(e){return N[n]=!1,!1}if(C[e])t=t.replace(I,V);else if(""===M.style[e]&&("-ms-flex"===(t=a.css+t)&&(M.style[e]="-ms-flexbox"),M.style[e]=t,""===M.style[e]))return N[n]=!1,!1;return M.style[e]="",N[n]=t,N[n]},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).cssVendor={})}(this,function(e){"use strict";var r="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="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType,n="",o="",i="",s="",u=t&&"ontouchstart"in document.documentElement;if(t){var f={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},p=document.createElement("p").style;for(var l in f)if(l+"Transform"in p){n=l,o=f[l];break}"Webkit"===n&&"msHyphens"in p&&(n="ms",o=f.ms,s="edge"),"Webkit"===n&&"-apple-trailing-word"in p&&(i="apple")}var c={js:n,css:o,vendor:i,browser:s,isTouch:u};function a(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===c.js?"-webkit-"+e:c.css+e)}},y=/[-\s]+(.)?/g;function m(e,r){return r?r.toUpperCase():""}function b(e){return e.replace(y,m)}function x(e){return b("-"+e)}var g,j={supportedProperty:function(e,r){return!!/^break-/.test(e)&&("Webkit"===c.js?"WebkitColumn"+x(e)in r&&c.css+"column-"+e:"Moz"===c.js&&("page"+x(e)in r&&"page-"+e))}},v={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===c.js?c.css+"print-"+e:e)}},P={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"},k=Object.keys(P),w=function(e){return c.css+e},h={"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"},W=[d,v,{noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if("Webkit"===c.js){if(b("mask-image")in r)return e;if(c.js+x("mask-image")in r)return c.css+e}return e}},{noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==c.vendor||c.isTouch?e:c.css+e)}},{noPrefill:["transform"],supportedProperty:function(e,r,t){return"transform"===e&&(t.transform?e:c.css+e)}},{noPrefill:["transition"],supportedProperty:function(e,r,t){return"transition"===e&&(t.transition?e:c.css+e)}},{noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===c.js||"ms"===c.js?c.css+e:e)}},j,{supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===c.js)return e;var t=e.replace("-inline","");return c.js+x(t)in r&&c.css+t}},{supportedProperty:function(e,r){return b(e)in r&&e}},{supportedProperty:function(e,r){var t=x(e);return"-"===e[0]?e:"-"===e[0]&&"-"===e[1]?e:c.js+t in r?c.css+e:"Webkit"!==c.js&&"Webkit"+t in r&&"-webkit-"+e}},{supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===c.js?""+c.css+e:e)}},{supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===c.js?c.css+"scroll-chaining":e)}},{supportedProperty:function(e,r){var t=h[e];return!!t&&(c.js+x(t)in r&&c.css+t)}},{supportedProperty:function(e,r,t){var n=t.multiple;if(k.indexOf(e)>-1){var o=P[e];if(!Array.isArray(o))return c.js+x(o)in r&&c.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(c.js+x(o[0])in r))return!1;return o.map(w)}return!1}}],S=W.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),A=W.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,a(r.noPrefill)),e},[]),E={};if(t){g=document.createElement("p");var O=window.getComputedStyle(document.documentElement,"");for(var z in O)isNaN(z)||(E[O[z]]=O[z]);A.forEach(function(e){return delete E[e]})}function T(e,r){if(void 0===r&&(r={}),!g)return e;if(null!=E[e])return E[e];"transition"!==e&&"transform"!==e||(r[e]=e in g.style);for(var t=0;t<S.length&&(E[e]=S[t](e,g.style,r),!E[e]);t++);try{g.style[e]=""}catch(e){return!1}return E[e]}var M,N={},C={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},I=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function V(e,r,t){return"var"===r?"var":"all"===r?"all":"all"===t?", all":r?T(r):", "+T(t)}t&&(M=document.createElement("p")),e.prefix=c,e.supportedKeyframes=function(e){return"-"===e[1]?e:"ms"===c.js?e:"@"+c.css+"keyframes"+e.substr(10)},e.supportedProperty=T,e.supportedValue=function(e,r){var t=r;if(!M||"content"===e)return r;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=N[n])return N[n];try{M.style[e]=t}catch(e){return N[n]=!1,!1}if(C[e])t=t.replace(I,V);else if(""===M.style[e]&&("-ms-flex"===(t=c.css+t)&&(M.style[e]="-ms-flexbox"),M.style[e]=t,""===M.style[e]))return N[n]=!1,!1;return M.style[e]="",N[n]=t,N[n]},Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "css-vendor", | ||
"description": "CSS vendor prefix detection and property feature testing.", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"author": { | ||
@@ -43,5 +43,5 @@ "name": "Oleg Slobodskoi", | ||
"devDependencies": { | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-transform-runtime": "^7.2.0", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/core": "^7.5.5", | ||
"@babel/plugin-transform-runtime": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"autoprefixer": "^9.6.0", | ||
@@ -55,14 +55,14 @@ "babel-cli": "^6.5.1", | ||
"babel-plugin-transform-es3-property-literals": "^6.8.0", | ||
"caniuse-support": "^1.0.1", | ||
"caniuse-support": "^1.0.2", | ||
"cross-env": "^5.2.0", | ||
"es5-shim": "^4.5.10", | ||
"eslint": "^5.13.0", | ||
"eslint": "^6.1.0", | ||
"eslint-config-jss": "^5.0.1", | ||
"eslint-config-prettier": "^5.0.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"expect.js": "^0.3.1", | ||
"karma": "^4.0.1", | ||
"karma-benchmark": "^1.0.0", | ||
"karma-benchmark": "^1.0.4", | ||
"karma-benchmark-reporter": "^0.1.1", | ||
"karma-browserstack-launcher": "^1.4.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-chrome-launcher": "^3.0.0", | ||
"karma-firefox-launcher": "^1.1.0", | ||
@@ -75,19 +75,19 @@ "karma-mocha": "^1.0.1", | ||
"karma-webpack": "^4.0.2", | ||
"lint-staged": "^8.2.0", | ||
"mocha": "^6.0.0", | ||
"lint-staged": "^9.2.1", | ||
"mocha": "^6.2.0", | ||
"postcss-js": "^2.0.0", | ||
"pre-commit": "^1.1.3", | ||
"prettier": "1.18.0", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^1.15.6", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.19.4", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-node-resolve": "^5.0.1", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-size-snapshot": "^0.9.0", | ||
"rollup-plugin-size-snapshot": "^0.10.0", | ||
"rollup-plugin-terser": "^5.0.0", | ||
"webpack": "^4.33.0", | ||
"webpack-cli": "^3.3.3" | ||
"webpack": "^4.39.2", | ||
"webpack-cli": "^3.3.6" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1", | ||
"@babel/runtime": "^7.5.5", | ||
"is-in-browser": "^1.0.2" | ||
@@ -94,0 +94,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
58913
Updated@babel/runtime@^7.5.5