Socket
Socket
Sign inDemoInstall

postcss-custom-media

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-custom-media - npm Package Compare versions

Comparing version 7.0.3 to 7.0.4

4

CHANGELOG.md
# Changes to PostCSS Custom Media
### 7.0.4 (September 23, 2018)
- Added: `importFromPlugins` option to process imports
### 7.0.3 (September 20, 2018)

@@ -4,0 +8,0 @@

15

index.cjs.js

@@ -210,3 +210,3 @@ 'use strict';

afterModifier,
originalModifier: modifier || 'not',
originalModifier: modifier || '',
beforeAnd,

@@ -361,3 +361,12 @@ and,

type: media.type || replacementMedia.type
});
}); // conditionally include more replacement raws when the type is present
if (mediaClone.type === replacementMedia.type) {
Object.assign(mediaClone.raws, {
and: replacementMedia.raws.and,
beforeAnd: replacementMedia.raws.beforeAnd,
beforeExpression: replacementMedia.raws.beforeExpression
});
}
mediaClone.nodes.splice(index, 1, ...replacementMedia.clone().nodes.map(node => {

@@ -687,3 +696,3 @@ // use spacing from the current usage

const type = (opts.type || path.extname(opts.to).slice(1)).toLowerCase(); // transformed custom media
const type = (opts.type || path.extname(to).slice(1)).toLowerCase(); // transformed custom media

@@ -690,0 +699,0 @@ const customMediaJSON = toJSON(customMedia);

{
"name": "postcss-custom-media",
"version": "7.0.3",
"version": "7.0.4",
"description": "Use Custom Media Queries in CSS",

@@ -41,3 +41,3 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>",

"pre-commit": "^1.2.2",
"rollup": "^0.66.1",
"rollup": "^0.66.2",
"rollup-plugin-babel": "^4.0.3"

@@ -44,0 +44,0 @@ },

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