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

fela-plugin-hover-media

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-plugin-hover-media - npm Package Compare versions

Comparing version 12.0.0-rc.2 to 12.0.0-rc.3.0

10

es/index.js

@@ -6,3 +6,3 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function resolveHoverStyles(style) {
function hoverMediaPlugin(style) {
for (var property in style) {

@@ -12,3 +12,3 @@ var value = style[property];

if (isPlainObject(value)) {
var resolvedValue = resolveHoverStyles(value);
var resolvedValue = hoverMediaPlugin(value);

@@ -28,4 +28,4 @@ if (property === ':hover' || property === '&:hover') {

export default (function () {
return resolveHoverStyles;
});
export default function hoverMedia() {
return hoverMediaPlugin;
}

@@ -6,3 +6,3 @@ "use strict";

});
exports["default"] = void 0;
exports["default"] = hoverMedia;

@@ -17,3 +17,3 @@ var _isobject = _interopRequireDefault(require("isobject"));

function resolveHoverStyles(style) {
function hoverMediaPlugin(style) {
for (var property in style) {

@@ -23,3 +23,3 @@ var value = style[property];

if ((0, _isobject["default"])(value)) {
var resolvedValue = resolveHoverStyles(value);
var resolvedValue = hoverMediaPlugin(value);

@@ -39,6 +39,4 @@ if (property === ':hover' || property === '&:hover') {

var _default = function _default() {
return resolveHoverStyles;
};
exports["default"] = _default;
function hoverMedia() {
return hoverMediaPlugin;
}
{
"name": "fela-plugin-hover-media",
"version": "12.0.0-rc.2",
"version": "12.0.0-rc.3.0",
"description": "Fela plugin to wrap :hover styles in @media (hover: hover)",

@@ -64,3 +64,3 @@ "main": "lib/index.js",

},
"gitHead": "0e5e638041a6a62e52128dbac21e9c5f21d80b66"
"gitHead": "71e887614179a10c85332e326cf1d943ca51289a"
}

@@ -25,3 +25,3 @@ # fela-plugin-hover-media

Make sure to read the documentation on [how to use plugins](http://fela.js.org/docs/advanced/Plugins.html).
Make sure to read the documentation on [how to use plugins](https://fela.js.org/docs/latest/advanced/plugins#using-plugins).

@@ -28,0 +28,0 @@ ```javascript

@@ -7,2 +7,2 @@ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("FelaPluginHoverMedia",[],r):"object"==typeof exports?exports.FelaPluginHoverMedia=r():e.FelaPluginHoverMedia=r()}(window,(function(){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1)}([function(e,r,t){"use strict";

* Released under the MIT License.
*/e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,r,t){"use strict";t.r(r);var n=t(0),o=t.n(n);function u(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e){for(var r in e){var t=e[r];if(o()(t)){var n=i(t);":hover"===r||"&:hover"===r?(e["@media (hover: hover)"]=u({},r,n),delete e[r]):e[r]=n}}return e}r.default=function(){return i}}])}));
*/e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return f}));var n=t(0),o=t.n(n);function u(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e){for(var r in e){var t=e[r];if(o()(t)){var n=i(t);":hover"===r||"&:hover"===r?(e["@media (hover: hover)"]=u({},r,n),delete e[r]):e[r]=n}}return e}function f(){return i}}])}));
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