css-vendor
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -221,3 +221,3 @@ 'use strict'; | ||
if (prefix.js === 'Webkit' || prefix.js === 'ms') { | ||
if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') { | ||
return prefix.css + prop; | ||
@@ -224,0 +224,0 @@ } |
@@ -215,3 +215,3 @@ import isInBrowser from 'is-in-browser'; | ||
if (prefix.js === 'Webkit' || prefix.js === 'ms') { | ||
if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') { | ||
return prefix.css + prop; | ||
@@ -218,0 +218,0 @@ } |
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = global || self, factory(global.cssVendor = {})); | ||
}(this, function (exports) { 'use strict'; | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -245,3 +245,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
if (prefix.js === 'Webkit' || prefix.js === 'ms') { | ||
if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') { | ||
return prefix.css + prop; | ||
@@ -611,2 +611,2 @@ } | ||
})); | ||
}))); |
@@ -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 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={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===c.js?c.css+"print-"+e:e)}},m=/[-\s]+(.)?/g;function b(e,r){return r?r.toUpperCase():""}function x(e){return e.replace(m,b)}function j(e){return x("-"+e)}var v,g={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if("Webkit"===c.js){if(x("mask-image")in r)return e;if(c.js+j("mask-image")in r)return c.css+e}return e}},P={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==c.vendor||c.isTouch?e:c.css+e)}},k={noPrefill:["transform"],supportedProperty:function(e,r,t){return"transform"===e&&(t.transform?e:c.css+e)}},w={noPrefill:["transition"],supportedProperty:function(e,r,t){return"transition"===e&&(t.transition?e:c.css+e)}},h={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===c.js||"ms"===c.js?c.css+e:e)}},W={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===c.js||"ms"===c.js||"apple"===c.vendor?c.css+e:e)}},S={supportedProperty:function(e,r){return!!/^break-/.test(e)&&("Webkit"===c.js?"WebkitColumn"+j(e)in r&&c.css+"column-"+e:"Moz"===c.js&&("page"+j(e)in r&&"page-"+e))}},A={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+j(t)in r&&c.css+t}},E={supportedProperty:function(e,r){return x(e)in r&&e}},z={supportedProperty:function(e,r){var t=j(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}},O={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===c.js?""+c.css+e:e)}},M={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===c.js?c.css+"scroll-chaining":e)}},T={"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"},N={supportedProperty:function(e,r){var t=T[e];return!!t&&(c.js+j(t)in r&&c.css+t)}},C={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"},I=Object.keys(C),V=function(e){return c.css+e},_=[d,y,g,P,k,w,h,W,S,A,E,z,O,M,N,{supportedProperty:function(e,r,t){var n=t.multiple;if(I.indexOf(e)>-1){var o=C[e];if(!Array.isArray(o))return c.js+j(o)in r&&c.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(c.js+j(o[0])in r))return!1;return o.map(V)}return!1}}],H=_.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),K=_.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,a(r.noPrefill)),e},[]),U={};if(t){v=document.createElement("p");var q=window.getComputedStyle(document.documentElement,"");for(var B in q)isNaN(B)||(U[q[B]]=q[B]);K.forEach(function(e){return delete U[e]})}function D(e,r){if(void 0===r&&(r={}),!v)return e;if(null!=U[e])return U[e];"transition"!==e&&"transform"!==e||(r[e]=e in v.style);for(var t=0;t<H.length&&(U[e]=H[t](e,v.style,r),!U[e]);t++);try{v.style[e]=""}catch(e){return!1}return U[e]}var F,G={},J={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},L=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Q(e,r,t){if("var"===r)return"var";if("all"===r)return"all";if("all"===t)return", all";var n=r?D(r):", "+D(t);return n||(r||t)}t&&(F=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=D,e.supportedValue=function(e,r){var t=r;if(!F||"content"===e)return r;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=G[n])return G[n];try{F.style[e]=t}catch(e){return G[n]=!1,!1}if(J[e])t=t.replace(L,Q);else if(""===F.style[e]&&("-ms-flex"===(t=c.css+t)&&(F.style[e]="-ms-flexbox"),F.style[e]=t,""===F.style[e]))return G[n]=!1,!1;return F.style[e]="",G[n]=t,G[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={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===c.js?c.css+"print-"+e:e)}},m=/[-\s]+(.)?/g;function b(e,r){return r?r.toUpperCase():""}function x(e){return e.replace(m,b)}function j(e){return x("-"+e)}var g,v={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if("Webkit"===c.js){if(x("mask-image")in r)return e;if(c.js+j("mask-image")in r)return c.css+e}return e}},P={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==c.vendor||c.isTouch?e:c.css+e)}},k={noPrefill:["transform"],supportedProperty:function(e,r,t){return"transform"===e&&(t.transform?e:c.css+e)}},w={noPrefill:["transition"],supportedProperty:function(e,r,t){return"transition"===e&&(t.transition?e:c.css+e)}},h={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===c.js||"ms"===c.js&&"edge"!==c.browser?c.css+e:e)}},W={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===c.js||"ms"===c.js||"apple"===c.vendor?c.css+e:e)}},S={supportedProperty:function(e,r){return!!/^break-/.test(e)&&("Webkit"===c.js?"WebkitColumn"+j(e)in r&&c.css+"column-"+e:"Moz"===c.js&&("page"+j(e)in r&&"page-"+e))}},A={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+j(t)in r&&c.css+t}},E={supportedProperty:function(e,r){return x(e)in r&&e}},z={supportedProperty:function(e,r){var t=j(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}},O={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===c.js?""+c.css+e:e)}},M={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===c.js?c.css+"scroll-chaining":e)}},T={"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"},N={supportedProperty:function(e,r){var t=T[e];return!!t&&(c.js+j(t)in r&&c.css+t)}},C={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"},I=Object.keys(C),V=function(e){return c.css+e},_=[d,y,v,P,k,w,h,W,S,A,E,z,O,M,N,{supportedProperty:function(e,r,t){var n=t.multiple;if(I.indexOf(e)>-1){var o=C[e];if(!Array.isArray(o))return c.js+j(o)in r&&c.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(c.js+j(o[0])in r))return!1;return o.map(V)}return!1}}],H=_.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),K=_.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,a(r.noPrefill)),e},[]),U={};if(t){g=document.createElement("p");var q=window.getComputedStyle(document.documentElement,"");for(var B in q)isNaN(B)||(U[q[B]]=q[B]);K.forEach(function(e){return delete U[e]})}function D(e,r){if(void 0===r&&(r={}),!g)return e;if(null!=U[e])return U[e];"transition"!==e&&"transform"!==e||(r[e]=e in g.style);for(var t=0;t<H.length&&(U[e]=H[t](e,g.style,r),!U[e]);t++);try{g.style[e]=""}catch(e){return!1}return U[e]}var F,G={},J={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},L=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Q(e,r,t){if("var"===r)return"var";if("all"===r)return"all";if("all"===t)return", all";var n=r?D(r):", "+D(t);return n||(r||t)}t&&(F=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=D,e.supportedValue=function(e,r){var t=r;if(!F||"content"===e)return r;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=G[n])return G[n];try{F.style[e]=t}catch(e){return G[n]=!1,!1}if(J[e])t=t.replace(L,Q);else if(""===F.style[e]&&("-ms-flex"===(t=c.css+t)&&(F.style[e]="-ms-flexbox"),F.style[e]=t,""===F.style[e]))return G[n]=!1,!1;return F.style[e]="",G[n]=t,G[n]},Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "css-vendor", | ||
"description": "CSS vendor prefix detection and property feature testing.", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"author": { | ||
@@ -43,6 +43,6 @@ "name": "Oleg Slobodskoi", | ||
"devDependencies": { | ||
"@babel/core": "^7.6.2", | ||
"@babel/plugin-transform-runtime": "^7.6.2", | ||
"@babel/preset-env": "^7.6.2", | ||
"autoprefixer": "^9.6.0", | ||
"@babel/core": "^7.8.0", | ||
"@babel/plugin-transform-runtime": "^7.8.3", | ||
"@babel/preset-env": "^7.8.2", | ||
"autoprefixer": "^9.7.5", | ||
"babel-cli": "^6.5.1", | ||
@@ -55,4 +55,4 @@ "babel-eslint": "^10.0.3", | ||
"babel-plugin-transform-es3-property-literals": "^6.8.0", | ||
"caniuse-support": "^1.0.2", | ||
"cross-env": "^6.0.0", | ||
"caniuse-support": "^1.0.4", | ||
"cross-env": "^7.0.0", | ||
"es5-shim": "^4.5.10", | ||
@@ -75,13 +75,13 @@ "eslint": "^6.4.0", | ||
"karma-webpack": "^4.0.2", | ||
"lint-staged": "^9.4.0", | ||
"mocha": "^6.2.0", | ||
"lint-staged": "^10.0.3", | ||
"mocha": "^7.0.1", | ||
"postcss-js": "^2.0.3", | ||
"pre-commit": "^1.1.3", | ||
"prettier": "1.18.0", | ||
"prettier": "^2.0.2", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.19.4", | ||
"rollup": "^2.3.2", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-size-snapshot": "^0.10.0", | ||
"rollup-plugin-size-snapshot": "^0.11.0", | ||
"rollup-plugin-terser": "^5.1.2", | ||
@@ -92,3 +92,3 @@ "webpack": "^4.39.2", | ||
"dependencies": { | ||
"@babel/runtime": "^7.6.2", | ||
"@babel/runtime": "^7.8.3", | ||
"is-in-browser": "^1.0.2" | ||
@@ -95,0 +95,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
60723
Updated@babel/runtime@^7.8.3