Comparing version 8.4.39 to 8.4.40
@@ -91,3 +91,5 @@ import Container, { | ||
*/ | ||
name: string | ||
get name(): string | ||
set name(value: string) | ||
/** | ||
@@ -122,3 +124,4 @@ * An array containing the layer’s children. | ||
*/ | ||
params: string | ||
get params(): string | ||
set params(value: string) | ||
parent: ContainerWithChildren | undefined | ||
@@ -125,0 +128,0 @@ |
@@ -54,3 +54,4 @@ import Container from './container.js' | ||
*/ | ||
text: string | ||
get text(): string | ||
set text(value: string) | ||
@@ -57,0 +58,0 @@ type: 'comment' |
@@ -18,7 +18,7 @@ 'use strict' | ||
function markDirtyUp(node) { | ||
function markTreeDirty(node) { | ||
node[isClean] = false | ||
if (node.proxyOf.nodes) { | ||
for (let i of node.proxyOf.nodes) { | ||
markDirtyUp(i) | ||
markTreeDirty(i) | ||
} | ||
@@ -157,3 +157,7 @@ } | ||
let type = existIndex === 0 ? 'prepend' : false | ||
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse() | ||
let nodes = this.normalize( | ||
add, | ||
this.proxyOf.nodes[existIndex], | ||
type | ||
).reverse() | ||
existIndex = this.index(exist) | ||
@@ -214,3 +218,3 @@ for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node) | ||
if (i.parent) i.parent.removeChild(i) | ||
if (i[isClean]) markDirtyUp(i) | ||
if (i[isClean]) markTreeDirty(i) | ||
if (typeof i.raws.before === 'undefined') { | ||
@@ -217,0 +221,0 @@ if (sample && typeof sample.raws.before !== 'undefined') { |
@@ -80,3 +80,4 @@ import { ContainerWithChildren } from './container.js' | ||
*/ | ||
important: boolean | ||
get important(): boolean | ||
set important(value: boolean) | ||
@@ -95,3 +96,4 @@ parent: ContainerWithChildren | undefined | ||
*/ | ||
prop: string | ||
get prop(): string | ||
set prop(value: string) | ||
@@ -119,3 +121,4 @@ raws: Declaration.DeclarationRaws | ||
*/ | ||
value: string | ||
get value(): string | ||
set value(value: string) | ||
@@ -140,3 +143,4 @@ /** | ||
*/ | ||
variable: boolean | ||
get variable(): boolean | ||
set varaible(value: string) | ||
@@ -143,0 +147,0 @@ constructor(defaults?: Declaration.DeclarationProps) |
@@ -10,3 +10,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.4.39' | ||
this.version = '8.4.40' | ||
this.plugins = this.normalize(plugins) | ||
@@ -13,0 +13,0 @@ } |
@@ -87,3 +87,4 @@ import Container, { | ||
*/ | ||
selector: string | ||
get selector(): string | ||
set selector(value: string); | ||
@@ -105,3 +106,4 @@ /** | ||
*/ | ||
selectors: string[] | ||
get selectors(): string[] | ||
set selectors(values: string[]); | ||
@@ -108,0 +110,0 @@ type: 'rule' |
{ | ||
"name": "postcss", | ||
"version": "8.4.39", | ||
"version": "8.4.40", | ||
"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
198206
6836
5