Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-get-variables

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-get-variables - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js

@@ -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

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