postcss-import
Advanced tools
Comparing version 6.2.0 to 7.0.0
@@ -0,1 +1,10 @@ | ||
# 7.0.0 - 2015-08-25 | ||
- Removed: compatibility with postcss v4.x | ||
([#75](https://github.com/postcss/postcss-import/pull/75)) | ||
- Added: compatibility with postcss v5.x | ||
([#76](https://github.com/postcss/postcss-import/pull/76)) | ||
- Added: lighter package by upgrading some dependencies | ||
([#73](https://github.com/postcss/postcss-import/issues/73)) | ||
# 6.2.0 - 2015-07-21 | ||
@@ -2,0 +11,0 @@ |
21
index.js
@@ -14,4 +14,3 @@ /** | ||
var Promize = global.Promise || require("es6-promise").Promise | ||
var resolvedPromise = new Promize(function(resolvePromise) { | ||
var resolvedPromise = new Promise(function(resolvePromise) { | ||
resolvePromise() | ||
@@ -135,3 +134,3 @@ }) | ||
var imports = [] | ||
styles.eachAtRule("import", function checkAtRule(atRule) { | ||
styles.walkAtRules("import", function checkAtRule(atRule) { | ||
if (atRule.nodes) { | ||
@@ -162,3 +161,3 @@ result.warn(warnNodesMessage, {node: atRule}) | ||
if (options.async) { | ||
return Promize.all(importResults) | ||
return Promise.all(importResults) | ||
} | ||
@@ -210,3 +209,3 @@ // else (!options.async) | ||
}) | ||
atRule.removeSelf() | ||
atRule.remove() | ||
@@ -241,4 +240,4 @@ return imports | ||
if (first && | ||
first.before.indexOf("\n") === -1) { | ||
first.before = "\n\n" + first.before | ||
first.raws.before.indexOf("\n") === -1) { | ||
first.raws.before = "\n\n" + first.raws.before | ||
} | ||
@@ -428,3 +427,3 @@ } | ||
if (newStyles.nodes && newStyles.nodes.length) { | ||
newStyles.nodes[0].before = newStyles.nodes[0].before || "\n" | ||
newStyles.nodes[0].raws.before = newStyles.nodes[0].raws.before || "\n" | ||
} | ||
@@ -445,4 +444,4 @@ | ||
// copy code style | ||
wrapper.before = atRule.before | ||
wrapper.after = atRule.after | ||
wrapper.raws.before = atRule.raws.before | ||
wrapper.raws.after = atRule.raws.after | ||
@@ -454,3 +453,3 @@ // move nodes | ||
else if (newNodes && newNodes.length) { | ||
newNodes[0].before = atRule.before | ||
newNodes[0].raws.before = atRule.raws.before | ||
} | ||
@@ -457,0 +456,0 @@ |
{ | ||
"name": "postcss-import", | ||
"version": "6.2.0", | ||
"version": "7.0.0", | ||
"description": "PostCSS plugin to import CSS files", | ||
@@ -20,19 +20,16 @@ "keywords": [ | ||
"files": [ | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"clone": "^0.1.17", | ||
"es6-promise": "^2.3.0", | ||
"glob": "^5.0.1", | ||
"object-assign": "^3.0.0", | ||
"postcss": "^4.1.4", | ||
"clone": "^1.0.2", | ||
"glob": "^5.0.14", | ||
"object-assign": "^4.0.1", | ||
"postcss": "^5.0.2", | ||
"postcss-message-helpers": "^2.0.0", | ||
"resolve": "^1.0.0" | ||
"resolve": "^1.1.6" | ||
}, | ||
"devDependencies": { | ||
"css-whitespace": "^1.1.0", | ||
"eslint": "^0.23.0", | ||
"tape": "^3.0.0" | ||
"css-whitespace": "^1.1.1", | ||
"eslint": "^1.1.0", | ||
"tape": "^4.0.3" | ||
}, | ||
@@ -39,0 +36,0 @@ "scripts": { |
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
25843
6
504
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedjs-base64@2.6.4(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpostcss@5.2.18(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.03.2.3(transitive)
- Removedes6-promise@^2.3.0
- Removedamdefine@1.0.1(transitive)
- Removedclone@0.1.19(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedjs-base64@2.1.9(transitive)
- Removedobject-assign@3.0.0(transitive)
- Removedpostcss@4.1.16(transitive)
- Removedsource-map@0.4.4(transitive)
Updatedclone@^1.0.2
Updatedglob@^5.0.14
Updatedobject-assign@^4.0.1
Updatedpostcss@^5.0.2
Updatedresolve@^1.1.6