postcss-custom-media
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -0,1 +1,5 @@ | ||
# 1.3.0 - 2014-11-25 | ||
- Better gnu message | ||
# 1.2.1 - 2014-10-09 | ||
@@ -2,0 +6,0 @@ |
17
index.js
/** | ||
* Module dependencies | ||
*/ | ||
var helpers = require("postcss-message-helpers") | ||
/** | ||
* Constants. | ||
@@ -51,3 +56,3 @@ */ | ||
console.warn(gnuMessage("missing @custom-media definition for '" + name + "'. The entire rule has been removed from the output.", rule.source)) | ||
console.warn(helpers.message("missing @custom-media definition for '" + name + "'. The entire rule has been removed from the output.", rule.source)) | ||
toRemove.push(rule) | ||
@@ -61,11 +66,1 @@ }) | ||
} | ||
/** | ||
* return GNU style message | ||
* | ||
* @param {String} message | ||
* @param {Object} source | ||
*/ | ||
function gnuMessage(message, source) { | ||
return (source ? (source.file ? source.file : "<css input>") + ":" + source.start.line + ":" + source.start.column + " " : "") + message | ||
} |
{ | ||
"name": "postcss-custom-media", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": " PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS", | ||
@@ -23,7 +23,9 @@ "keywords": [ | ||
], | ||
"dependencies": {}, | ||
"dependencies": { | ||
"postcss-message-helpers": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"jscs": "^1.6.2", | ||
"jshint": "^2.5.6", | ||
"postcss": "^2.2.5", | ||
"postcss": "^3.0.0", | ||
"tape": "^3.0.0" | ||
@@ -30,0 +32,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5604
1
53
+ Addedpostcss-message-helpers@1.1.1(transitive)