postcss-import
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -0,1 +1,5 @@ | ||
# 2.0.0 - 2014-11-12 | ||
- upgrade to postcss 3 | ||
# 1.0.3 - 2014-10-29 | ||
@@ -2,0 +6,0 @@ |
16
index.js
@@ -32,4 +32,4 @@ /** | ||
// auto add from option if possible | ||
if (!options.from && styles && styles.rules && styles.rules[0] && styles.rules[0].source && styles.rules[0].source.file) { | ||
options.from = styles.rules[0].source.file | ||
if (!options.from && styles && styles.childs && styles.childs[0] && styles.childs[0].source && styles.childs[0].source.file) { | ||
options.from = styles.childs[0].source.file | ||
} | ||
@@ -137,9 +137,9 @@ | ||
newStyles.before = atRule.before | ||
if (newStyles.rules && newStyles.rules.length) { | ||
newStyles.rules[0].before = newStyles.rules[0].before || "\n" | ||
if (newStyles.childs && newStyles.childs.length) { | ||
newStyles.childs[0].before = newStyles.childs[0].before || "\n" | ||
} | ||
newStyles.after = atRule.after | ||
newStyles.after = atRule.after || "\n" | ||
} | ||
else if (newStyles.rules && newStyles.rules.length) { | ||
newStyles.rules[0].before = atRule.before | ||
else if (newStyles.childs && newStyles.childs.length) { | ||
newStyles.childs[0].before = atRule.before | ||
} | ||
@@ -225,3 +225,3 @@ | ||
function gnuMessage(message, source) { | ||
return (source ? (source.file ? source.file : "<css input>") + ":" + source.start.line + ":" + source.start.column : "") + " " + message | ||
return (source ? (source.file ? source.file : "<css input>") + ":" + source.start.line + ":" + source.start.column + " " : "") + message | ||
} |
{ | ||
"name": "postcss-import", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "PostCSS plugin to import CSS files", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"find-file": "^0.1.4", | ||
"postcss": "^2.1.0" | ||
"postcss": "^3.0.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
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
10756
+ Addedpostcss@3.0.7(transitive)
- Removedpostcss@2.2.6(transitive)
Updatedpostcss@^3.0.0