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

mq4-hover-shim

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mq4-hover-shim - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

10

package.json
{
"name": "mq4-hover-shim",
"version": "0.2.0",
"version": "0.3.0",
"description": "A shim for the Media Queries Level 4 `hover` @media feature",

@@ -35,4 +35,4 @@ "scripts": {

"dependencies": {
"css-mq-parser": "^0.0.2",
"postcss": "^4.0.0"
"css-mq-parser": "^0.0.3",
"postcss": "^5.0.8"
},

@@ -42,6 +42,6 @@ "devDependencies": {

"grunt-babel": "^5.0.0",
"grunt-browserify": "^3.2.1",
"grunt-browserify": "^4.0.0",
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-eslint": "^10.0.0",
"grunt-eslint": "^17.2.0",
"grunt-jscs": "^1.5.0",

@@ -48,0 +48,0 @@ "jscs-jsdoc": "^0.4.0",

# mq4-hover-shim
[![NPM version](https://badge.fury.io/js/mq4-hover-shim.svg)](http://badge.fury.io/js/mq4-hover-shim)
[![Build Status](https://img.shields.io/travis/twbs/mq4-hover-shim/master.svg)](https://travis-ci.org/twbs/mq4-hover-shim)
![Development Status :: 4 - Beta](https://img.shields.io/badge/maturity-beta-yellow.svg "Development Status :: 4 - Beta")
[![MIT License](https://img.shields.io/npm/l/mq4-hover-shim.svg)](https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE.txt)
[![Dependency Status](https://david-dm.org/twbs/mq4-hover-shim.svg)](https://david-dm.org/twbs/mq4-hover-shim)

@@ -5,0 +7,0 @@ [![devDependency Status](https://david-dm.org/twbs/mq4-hover-shim/dev-status.svg)](https://david-dm.org/twbs/mq4-hover-shim#info=devDependencies)

@@ -1,2 +0,2 @@

/*eslint-env node */
/* eslint-env node */
'use strict';

@@ -3,0 +3,0 @@

@@ -1,2 +0,3 @@

/*eslint-env node */
/* eslint-env node */
/* eslint require-jsdoc:0 */
/*!

@@ -42,3 +43,3 @@ * Postprocessor for shimming @media (hover: hover) from Media Queries Level 4

});
atRule.removeSelf();
atRule.remove();
}

@@ -79,3 +80,3 @@

css.eachAtRule('media', function (atRule) {
css.walkAtRules('media', function (atRule) {
var mediaType = mediaTypeIfSimpleHoverHover(atRule);

@@ -86,3 +87,3 @@ switch (mediaType) {

case 'screen': {
atRule.eachRule(function (rule) {
atRule.walkRules(function (rule) {
prefixSelectorsWith(rule, hoverSelectorPrefix);

@@ -105,3 +106,3 @@ });

// Delete always-false media query
atRule.removeSelf();
atRule.remove();
return;

@@ -108,0 +109,0 @@ }

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