csstree-validator
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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 @@ |
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 @@ [](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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
191669
130
0
Updatedcss-tree@^1.1.3