New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-em-media-query

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-em-media-query - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

9

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## [4.1.1][] - 2024-05-07
### Fixed
- Prevent possible infinite loops when processing nodes
## [4.1.0][] - 2020-10-21

@@ -34,1 +40,4 @@

[4.1.0]: https://github.com/niksy/postcss-em-media-query/tree/v4.1.0
[unreleased]:
https://github.com/niksy/postcss-em-media-query/compare/v4.1.1...HEAD
[4.1.1]: https://github.com/niksy/postcss-em-media-query/tree/v4.1.1

7

index.cjs.js

@@ -7,2 +7,4 @@ 'use strict';

const processed = Symbol('processed');
const plugin = (options) => {

@@ -13,3 +15,6 @@ return {

media: (rule) => {
rule.params = emMediaQuery(rule.params, options);
if (!rule[processed]) {
rule.params = emMediaQuery(rule.params, options);
rule[processed] = true;
}
}

@@ -16,0 +21,0 @@ }

import emMediaQuery from 'em-media-query';
const processed = Symbol('processed');
const plugin = (options) => {

@@ -8,3 +10,6 @@ return {

media: (rule) => {
rule.params = emMediaQuery(rule.params, options);
if (!rule[processed]) {
rule.params = emMediaQuery(rule.params, options);
rule[processed] = true;
}
}

@@ -11,0 +16,0 @@ }

2

package.json
{
"name": "postcss-em-media-query",
"version": "4.1.0",
"version": "4.1.1",
"description": "PostCSS plugin for transforming min/max-width/height media queries to ems.",

@@ -5,0 +5,0 @@ "main": "index.cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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