postcss-safe-parser
Advanced tools
Comparing version 5.0.0 to 5.0.1
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 5.0.1 | ||
* Fixed parsing missed semicolon. | ||
## 5.0 | ||
* Removed support for Node.js 6.x, 8.x, 11.x, and 13.x versions. | ||
* Used PostCSS 8.0. | ||
* Moved to PostCSS 8.0. | ||
@@ -8,0 +11,0 @@ ## 4.0.2 |
@@ -63,13 +63,20 @@ let tokenizer = require('postcss/lib/tokenize') | ||
let split | ||
for (split = colon - 1; split >= 0; split--) { | ||
if (tokens[split][0] === 'word') break | ||
let nextStart, prevEnd | ||
for (nextStart = colon - 1; nextStart >= 0; nextStart--) { | ||
if (tokens[nextStart][0] === 'word') break | ||
} | ||
for (split -= 1; split >= 0; split--) { | ||
if (tokens[split][0] !== 'space') { | ||
split += 1 | ||
if (nextStart === 0) return | ||
for (prevEnd = nextStart - 1; prevEnd >= 0; prevEnd--) { | ||
if (tokens[prevEnd][0] !== 'space') { | ||
prevEnd += 1 | ||
break | ||
} | ||
} | ||
let other = tokens.splice(split, tokens.length - split) | ||
let other = tokens.slice(nextStart) | ||
let spaces = tokens.slice(prevEnd, nextStart) | ||
tokens.splice(prevEnd, tokens.length - prevEnd) | ||
this.spaces = spaces.map(i => i[1]).join('') | ||
this.decl(other) | ||
@@ -76,0 +83,0 @@ } |
{ | ||
"name": "postcss-safe-parser", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Fault-tolerant CSS parser for PostCSS", | ||
@@ -20,4 +20,4 @@ "keywords": [ | ||
"dependencies": { | ||
"postcss": "^8.0.2" | ||
"postcss": "^8.0.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
6210
88
0
Updatedpostcss@^8.0.4