New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

csstree-validator

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csstree-validator - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

lib/validate.js

@@ -30,3 +30,3 @@ var fs = require('fs');

csstree.walkDeclarations(csstree.parse(css, { positions: true }), function(node) {
if (!syntax.match(node.property.name, node.value)) {
if (!syntax.matchProperty(node.property.name, node.value)) {
var error = syntax.lastMatchError;

@@ -33,0 +33,0 @@ var message = error.rawMessage || error.message || error;

{
"name": "csstree-validator",
"version": "1.0.0",
"version": "1.0.1",
"description": "CSS validator build on csstree",

@@ -39,3 +39,3 @@ "keywords": [

"clap": "^1.1.1",
"css-tree": "^1.0.0-alpha3"
"css-tree": "1.0.0-alpha5"
},

@@ -42,0 +42,0 @@ "devDependencies": {

@@ -28,6 +28,6 @@ [![NPM version](https://img.shields.io/npm/v/csstree-validator.svg)](https://www.npmjs.com/package/csstree-validator)

```js
var validate = require('csstree-validator').validate;
var validate = require('csstree-validator').validateFile;
var reporter = require('csstree-validator').reporters.checkstyle;
console.log(reporter(validate(['/path/to/style.css'])));
console.log(reporter(validateFile('/path/to/style.css')));
```
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