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

css-variables-loader

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-variables-loader - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

.idea/css-variables-loader.iml

4

package.json
{
"name": "css-variables-loader",
"version": "2.0.0",
"version": "2.0.1",
"description": "Load CSS variables with Webpack",

@@ -21,3 +21,3 @@ "main": "src/index.js",

"devDependencies": {
"ava": "^0.13.0"
"ava": "^0.16.0"
},

@@ -24,0 +24,0 @@ "dependencies": {

@@ -8,5 +8,5 @@ var css = require('css');

.forEach(rule => rule.declarations
.filter(decl => decl.property.indexOf('--') === 0)
.filter(decl => decl.type === 'declaration' && decl.property.indexOf('--') === 0)
.forEach(decl => result[decl.property] = decl.value));
return 'module.exports = ' + JSON.stringify(result);
};

@@ -11,3 +11,3 @@ /* eslint no-eval: 0 */

eval(loader(css));
t.same(module.exports, result);
t.deepEqual(module.exports, result);
});

@@ -34,1 +34,4 @@ };

{ '--theme': 'red' })
check('should not break when there is a comment',
':root { --theme: red; /* important info */ --accent: blue }',
{ '--accent': 'blue', '--theme': 'red' })
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