Socket
Socket
Sign inDemoInstall

postcss-custom-media

Package Overview
Dependencies
Maintainers
1
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 4.1.0 to 5.0.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 5.0.0 - 2015-08-25
- Removed: compatibility with postcss v4.x
- Added: compatibility with postcss v5.x
# 4.1.0 - 2015-06-30

@@ -2,0 +7,0 @@

14

index.js

@@ -54,3 +54,3 @@ var postcss = require("postcss")

// read custom media queries
styles.eachAtRule(function(rule) {
styles.walkAtRules(function(rule) {
if (rule.name !== "custom-media") {

@@ -91,3 +91,3 @@ return

// transform custom media query aliases
styles.eachAtRule(function(rule) {
styles.walkAtRules(function(rule) {
if (rule.name !== "media") {

@@ -128,9 +128,11 @@ return

name: "custom-media",
afterName: " ",
params: name + " " + map[name].value,
raws: {
afterName: " ",
},
})
styles.append(atRule)
})
styles.semicolon = true
styles.after = "\n"
styles.raws.semicolon = true
styles.raws.after = "\n"
}

@@ -141,3 +143,3 @@ }

toRemove.forEach(function(rule) {
rule.removeSelf()
rule.remove()
})

@@ -144,0 +146,0 @@ }

{
"name": "postcss-custom-media",
"version": "4.1.0",
"description": " PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS",
"version": "5.0.0",
"description": "PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS",
"keywords": [
"css",
"postcss",
"postcss-plugins",
"postcss-plugin",
"media queries",

@@ -19,11 +19,9 @@ "custom-media"

"files": [
"CHANGELOG.md",
"LICENSE",
"index.js"
],
"dependencies": {
"postcss": "^4.1.4"
"postcss": "^5.0.0"
},
"devDependencies": {
"eslint": "^0.23.0",
"eslint": "^1.0.0",
"tape": "^4.0.0"

@@ -30,0 +28,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