Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pluginjs/feature

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluginjs/feature - npm Package Compare versions

Comparing version 0.7.16 to 0.7.17

4

dist/feature.common.js
/*!
* @pluginjs/feature v0.7.16 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/feature v0.7.17 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.

@@ -5,0 +5,0 @@ */

/*!
* @pluginjs/feature v0.7.16 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/feature v0.7.17 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var old=()=>Boolean(/(Android\s(1.|2.))|(Silk\/1.)/i.test(navigator.userAgent)),pfx=function(){var t=["Webkit","Moz","O","ms"],n={},o=document.createElement("dummy").style;return function(r){if(void 0===n[r]){var e=r.charAt(0).toUpperCase()+r.substr(1),i="".concat(r," ").concat(t.join("".concat(e," "))).concat(e).split(" ");for(var a in n[r]=null,i)if(void 0!==o[i[a]]){n[r]=i[a];break}}return n[r]}}();function prefixedProperty(t){return pfx(t)}var transitionProperty=()=>pfx("transition"),transformProperty=()=>pfx("transform"),animationProperty=()=>pfx("animation"),transitionEndEvent=()=>{var t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=document.createElement("dummy").style;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==n[o])return t[o];return!1},animationEndEvent=()=>{var t={animation:"animationend",OAnimation:"oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},n={};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==n[o])return t[o];return!1},transform3D=()=>{var t=!old()&&null!==pfx("perspective");return Boolean(t)},transform=()=>{var t=!old()&&null!==pfx("transformOrigin");return Boolean(t)},transition=()=>{var t=null!==pfx("transition");return Boolean(t)},sticky=()=>{var t=!1,n=document.documentElement,o=document.createElement("div");n.appendChild(o);for(var r=["sticky","-webkit-sticky"],e=0;e<r.length&&(o.style.position=r[e],!(t=Boolean(window.getComputedStyle(o).position.match("sticky"))));e++);return n.removeChild(o),t},svg=()=>Boolean(document.createElementNS)&&Boolean(document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),touch=Boolean("ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch),pointer=!(!window.PointerEvent&&!window.MSPointerEvent);function pointerEvent(t){return window.MSPointerEvent?"MSPointer".concat(t.charAt(9).toUpperCase()).concat(t.substr(10)):t}exports.animationEndEvent=animationEndEvent,exports.animationProperty=animationProperty,exports.pointer=pointer,exports.pointerEvent=pointerEvent,exports.prefixedProperty=prefixedProperty,exports.sticky=sticky,exports.svg=svg,exports.touch=touch,exports.transform=transform,exports.transform3D=transform3D,exports.transformProperty=transformProperty,exports.transition=transition,exports.transitionEndEvent=transitionEndEvent,exports.transitionProperty=transitionProperty;
/*!
* @pluginjs/feature v0.7.16 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/feature v0.7.17 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.

@@ -5,0 +5,0 @@ */

/*!
* @pluginjs/feature v0.7.16 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/feature v0.7.17 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.
*/
var n,t,o,e=()=>Boolean(/(Android\s(1.|2.))|(Silk\/1.)/i.test(navigator.userAgent)),i=(n=["Webkit","Moz","O","ms"],t={},o=document.createElement("dummy").style,function(e){if(void 0===t[e]){var i=e.charAt(0).toUpperCase()+e.substr(1),r="".concat(e," ").concat(n.join("".concat(i," "))).concat(i).split(" ");for(var a in t[e]=null,r)if(void 0!==o[r[a]]){t[e]=r[a];break}}return t[e]});function r(n){return i(n)}var a=()=>i("transition"),c=()=>i("transform"),s=()=>i("animation"),d=()=>{var n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},t=document.createElement("dummy").style;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},m=()=>{var n={animation:"animationend",OAnimation:"oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},t={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},u=()=>{var n=!e()&&null!==i("perspective");return Boolean(n)},l=()=>{var n=!e()&&null!==i("transformOrigin");return Boolean(n)},v=()=>{var n=null!==i("transition");return Boolean(n)},w=()=>{var n=!1,t=document.documentElement,o=document.createElement("div");t.appendChild(o);for(var e=["sticky","-webkit-sticky"],i=0;i<e.length&&(o.style.position=e[i],!(n=Boolean(window.getComputedStyle(o).position.match("sticky"))));i++);return t.removeChild(o),n},p=()=>Boolean(document.createElementNS)&&Boolean(document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),f=Boolean("ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch),E=!(!window.PointerEvent&&!window.MSPointerEvent);function y(n){return window.MSPointerEvent?"MSPointer".concat(n.charAt(9).toUpperCase()).concat(n.substr(10)):n}export{m as animationEndEvent,s as animationProperty,E as pointer,y as pointerEvent,r as prefixedProperty,w as sticky,p as svg,f as touch,l as transform,u as transform3D,c as transformProperty,v as transition,d as transitionEndEvent,a as transitionProperty};
/*!
* @pluginjs/feature v0.7.16 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/feature v0.7.17 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.

@@ -5,0 +5,0 @@ */

/*!
* @pluginjs/feature v0.7.16 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/feature v0.7.17 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.
*/
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self)["@pluginjs/feature"]={})}(this,(function(n){"use strict";var t,o,e,i=function(){return Boolean(/(Android\s(1.|2.))|(Silk\/1.)/i.test(navigator.userAgent))},r=(t=["Webkit","Moz","O","ms"],o={},e=document.createElement("dummy").style,function(n){if(void 0===o[n]){var i=n.charAt(0).toUpperCase()+n.substr(1),r="".concat(n," ").concat(t.join("".concat(i," "))).concat(i).split(" ");for(var a in o[n]=null,r)if(void 0!==e[r[a]]){o[n]=r[a];break}}return o[n]});var a=Boolean("ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch),c=!(!window.PointerEvent&&!window.MSPointerEvent);n.animationEndEvent=function(){var n={animation:"animationend",OAnimation:"oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},t={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},n.animationProperty=function(){return r("animation")},n.pointer=c,n.pointerEvent=function(n){return window.MSPointerEvent?"MSPointer".concat(n.charAt(9).toUpperCase()).concat(n.substr(10)):n},n.prefixedProperty=function(n){return r(n)},n.sticky=function(){var n=!1,t=document.documentElement,o=document.createElement("div");t.appendChild(o);for(var e=["sticky","-webkit-sticky"],i=0;i<e.length&&(o.style.position=e[i],!(n=Boolean(window.getComputedStyle(o).position.match("sticky"))));i++);return t.removeChild(o),n},n.svg=function(){return Boolean(document.createElementNS)&&Boolean(document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)},n.touch=a,n.transform=function(){var n=!i()&&null!==r("transformOrigin");return Boolean(n)},n.transform3D=function(){var n=!i()&&null!==r("perspective");return Boolean(n)},n.transformProperty=function(){return r("transform")},n.transition=function(){var n=null!==r("transition");return Boolean(n)},n.transitionEndEvent=function(){var n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},t=document.createElement("dummy").style;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},n.transitionProperty=function(){return r("transition")},Object.defineProperty(n,"__esModule",{value:!0})}));

@@ -14,3 +14,3 @@ {

},
"version": "0.7.16",
"version": "0.7.17",
"category": "utils",

@@ -38,3 +38,3 @@ "main": "dist/feature.common.js",

"@babel/core": "^7.7.5",
"@pluginjs/browserslist-config": "^1.2.12",
"@pluginjs/browserslist-config": "^1.2.14",
"@pluginjs/cli": "^0.7.15",

@@ -66,4 +66,4 @@ "babel-jest": "*",

],
"gitHead": "f0767d4ff57027169d885ad7a3a46dbc4ff5cf7f",
"gitHead": "45f59203aaa9720d1fb61f5e96cde6d73b4cf2c8",
"title": "Plugin"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc