postcss-get-variables
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -11,3 +11,3 @@ 'use strict' | ||
root.eachRule(function (rule) { | ||
root.walkRules(function (rule) { | ||
if (rule.selectors.length === 1 && isCssRoot(rule.selectors[0]) && rule.parent.type === 'root') { | ||
@@ -14,0 +14,0 @@ rule.each(function (declaration) { |
@@ -5,3 +5,3 @@ { | ||
"author": "John Otander", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
@@ -24,8 +24,8 @@ "directories": { | ||
"is-css-root": "^1.0.1", | ||
"postcss": "^5.0.14" | ||
"postcss": "^6.0.6" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.9.1", | ||
"ava": "^0.20.0", | ||
"is-present": "1.0.0" | ||
} | ||
} |
@@ -9,5 +9,4 @@ 'use strict' | ||
test('postcss-get-variables', t => { | ||
t.plan(2) | ||
t.plan(3) | ||
@@ -18,2 +17,3 @@ postcss() | ||
t.true(isPresent(variables['primary-color'])) | ||
t.true(Object.keys(variables).length === 3) | ||
})) | ||
@@ -27,3 +27,3 @@ .process(fixture('basic')) | ||
function fixture (name) { | ||
return fs.readFileSync('fixtures/' + name + '.css', 'utf8').toString() | ||
return fs.readFileSync(`./test/fixtures/${name}.css`, 'utf8').toString() | ||
} |
Sorry, the diff of this file is not supported yet
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
4627
53
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedpostcss@6.0.23(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedchalk@1.1.3(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-flag@1.0.0(transitive)
- Removedjs-base64@2.6.4(transitive)
- Removedpostcss@5.2.18(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.03.2.3(transitive)
Updatedpostcss@^6.0.6