Socket
Socket
Sign inDemoInstall

@mozaic-ds/postcss-media-queries-packer-on-demand

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mozaic-ds/postcss-media-queries-packer-on-demand - npm Package Compare versions

Comparing version 1.0.1-beta.2 to 1.0.1-beta.3

coverage/clover.xml

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [1.0.1-beta.3](https://github.com/adeo/mozaic-design-system/compare/v1.0.1-beta.2...v1.0.1-beta.3) (2020-02-06)
### Bug Fixes
* **tools/mqpacker:** impact only media queries instead of all at rules ([fa0d443](https://github.com/adeo/mozaic-design-system/commit/fa0d44357013eae49b14278ee6f7d6a66a168ad5))
## [1.0.1-beta.2](https://github.com/adeo/mozaic-design-system/compare/v1.0.1-beta.1...v1.0.1-beta.2) (2020-01-23)

@@ -8,0 +19,0 @@

6

index.js

@@ -175,3 +175,7 @@ const postcss = require('postcss')

if (node.type === 'atrule' && startPacking === true) {
if (
node.type === 'atrule' &&
node.name === 'media' &&
startPacking === true
) {
addToAtRules(node)

@@ -178,0 +182,0 @@ }

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

import 'babel-polyfill'
let postcss = require('postcss')

@@ -208,1 +207,23 @@

})
it('should not impact other at rules than media', async () => {
await run(
`/* mqp:start */
.tata {
color: blue;
@supports (tututata) {}
}
@media (min-width: 680px) {}
@media (min-width: 320px) {}
@media (min-width: 1024px) {}
/* mqp:end */`,
`.tata {
color: blue;
@supports (tututata) {}
}
@media (min-width: 320px) {}
@media (min-width: 680px) {}
@media (min-width: 1024px) {}`,
{ sort: true }
)
})

2

package.json
{
"name": "@mozaic-ds/postcss-media-queries-packer-on-demand",
"version": "1.0.1-beta.2",
"version": "1.0.1-beta.3",
"description": "PostCSS plugin that group media queries on demand",

@@ -5,0 +5,0 @@ "keywords": [

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