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 2.0.0 to 2.0.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 2.0.1 (March 31, 2021)
- Fixed wrong `require()` in CLI that causes to crash
- Bumped `csstree` to [1.1.3](https://github.com/csstree/csstree/releases/tag/v1.1.1) to fix the issue with parsing that causes to a failure on a value with function/brackets and `!important` (#18)
## 2.0.0 (November 18, 2020)

@@ -2,0 +7,0 @@

2

lib/cli.js
const cli = require('clap');
const reporters = require('./reporter');
const { validatePath, validateString } = require('./validators');
const { validatePath, validateString } = require('./helpers');

@@ -5,0 +5,0 @@ function printResult(result, reporter) {

{
"name": "csstree-validator",
"version": "2.0.0",
"version": "2.0.1",
"description": "CSS validator built on csstree",

@@ -31,3 +31,3 @@ "author": "Roman Dvornov <rdvornov@gmail.com>",

"clap": "^1.1.1",
"css-tree": "^1.1.1"
"css-tree": "^1.1.3"
},

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

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

Reporters
Reporters:

@@ -87,2 +87,13 @@ * json

### Library in a browser
```html
<script src="csstree-validator/dist/csstree-validator.js"></script>
<script>
const errors = csstreeValidator.validate('.some { css: source }');
</script>
```
NOTE: Helpers and reporters are not available for browser version at the moment.
### CLI (terminal command)

@@ -89,0 +100,0 @@

Sorry, the diff of this file is too big to display

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