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.8.4 to 0.8.5

4

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

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

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

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

/*!
* @pluginjs/feature v0.8.4 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* @pluginjs/feature v0.8.5 (https://pluginjs.com)
* Copyright 2021 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.8.4 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* @pluginjs/feature v0.8.5 (https://pluginjs.com)
* Copyright 2021 Creation Studio Limited
* Released under the GPL-3.0 License.

@@ -9,3 +9,3 @@ */

typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global['@pluginjs/feature'] = {}));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@pluginjs/feature'] = {}));
}(this, (function (exports) { 'use strict';

@@ -12,0 +12,0 @@

/*!
* @pluginjs/feature v0.8.4 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* @pluginjs/feature v0.8.5 (https://pluginjs.com)
* Copyright 2021 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})}));
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis: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.8.4",
"version": "0.8.5",
"category": "utils",

@@ -37,7 +37,7 @@ "main": "dist/feature.common.js",

"devDependencies": {
"@babel/core": "^7.10.2",
"@pluginjs/browserslist-config": "^1.3.1",
"@pluginjs/cli": "^0.8.1",
"@rollup/plugin-commonjs": "^12.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@babel/core": "^7.12.10",
"@pluginjs/browserslist-config": "^1.3.2",
"@pluginjs/cli": "^0.8.2",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"babel-jest": "*",

@@ -47,3 +47,3 @@ "jest": "*",

"rename": "^1.0.4",
"rollup": "^2.12.0",
"rollup": "^2.38.1",
"rollup-plugin-babel": "*",

@@ -67,4 +67,4 @@ "rollup-plugin-terser": "*"

],
"gitHead": "c7a30bcc922362e40dbc35af4290a259c9b29566",
"gitHead": "e0247ab4b5e2026b77a390619f2b96bac30609c6",
"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