Comparing version 8.4.14 to 8.4.15
@@ -8,3 +8,3 @@ 'use strict' | ||
let parse, Rule, AtRule | ||
let parse, Rule, AtRule, Root | ||
@@ -411,2 +411,6 @@ function cleanSource(nodes) { | ||
Container.registerRoot = dependant => { | ||
Rule = dependant | ||
} | ||
module.exports = Container | ||
@@ -425,2 +429,4 @@ Container.default = Container | ||
Object.setPrototypeOf(node, Comment.prototype) | ||
} else if (node.type === 'root') { | ||
Object.setPrototypeOf(node, Root.prototype) | ||
} | ||
@@ -427,0 +433,0 @@ |
@@ -10,3 +10,4 @@ 'use strict' | ||
let func = 0 | ||
let quote = false | ||
let inQuote = false | ||
let prevQuote = '' | ||
let escape = false | ||
@@ -19,8 +20,9 @@ | ||
escape = true | ||
} else if (quote) { | ||
if (letter === quote) { | ||
quote = false | ||
} else if (inQuote) { | ||
if (letter === prevQuote) { | ||
inQuote = false | ||
} | ||
} else if (letter === '"' || letter === "'") { | ||
quote = letter | ||
inQuote = true | ||
prevQuote = letter | ||
} else if (letter === '(') { | ||
@@ -27,0 +29,0 @@ func += 1 |
@@ -10,3 +10,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.4.14' | ||
this.version = '8.4.15' | ||
this.plugins = this.normalize(plugins) | ||
@@ -13,0 +13,0 @@ } |
@@ -60,1 +60,3 @@ 'use strict' | ||
Root.default = Root | ||
Container.registerRoot(Root) |
{ | ||
"name": "postcss", | ||
"version": "8.4.14", | ||
"version": "8.4.15", | ||
"description": "Tool for transforming styles with JS plugins", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
186792
6516