Comparing version 8.4.26 to 8.4.27
@@ -35,5 +35,3 @@ import AtRule from './at-rule.js' | ||
*/ | ||
declare abstract class Container_< | ||
Child extends Node = ChildNode | ||
> extends Node { | ||
declare abstract class Container_<Child extends Node = ChildNode> extends Node { | ||
/** | ||
@@ -75,2 +73,7 @@ * An array containing the container’s children. | ||
assign(overrides: Container.ContainerProps | object): this | ||
clone(overrides?: Partial<Container.ContainerProps>): Container<Child> | ||
cloneAfter(overrides?: Partial<Container.ContainerProps>): Container<Child> | ||
cloneBefore(overrides?: Partial<Container.ContainerProps>): Container<Child> | ||
/** | ||
@@ -127,3 +130,2 @@ * Iterates through the container’s immediate children, | ||
): boolean | ||
/** | ||
@@ -162,2 +164,19 @@ * The container’s first child. | ||
/** | ||
* Traverses the container’s descendant nodes, calling callback | ||
* for each comment node. | ||
* | ||
* Like `Container#each`, this method is safe | ||
* to use if you are mutating arrays during iteration. | ||
* | ||
* ```js | ||
* root.walkComments(comment => { | ||
* comment.remove() | ||
* }) | ||
* ``` | ||
* | ||
* @param callback Iterator receives each node and index. | ||
* @return Returns `false` if iteration was broke. | ||
*/ | ||
/** | ||
* Insert new node before old node within the container. | ||
@@ -209,2 +228,3 @@ * | ||
): this | ||
/** | ||
@@ -223,19 +243,2 @@ * Add child to the end of the node. | ||
/** | ||
* Traverses the container’s descendant nodes, calling callback | ||
* for each comment node. | ||
* | ||
* Like `Container#each`, this method is safe | ||
* to use if you are mutating arrays during iteration. | ||
* | ||
* ```js | ||
* root.walkComments(comment => { | ||
* comment.remove() | ||
* }) | ||
* ``` | ||
* | ||
* @param callback Iterator receives each node and index. | ||
* @return Returns `false` if iteration was broke. | ||
*/ | ||
/** | ||
* Removes all children from the container | ||
@@ -252,2 +255,3 @@ * and cleans their parent properties. | ||
removeAll(): this | ||
/** | ||
@@ -269,2 +273,7 @@ * Removes node from the container and cleans the parent properties | ||
replaceValues( | ||
pattern: RegExp | string, | ||
replaced: { (substring: string, ...args: any[]): string } | string | ||
): this | ||
/** | ||
@@ -299,7 +308,2 @@ * Passes all declaration values within the container that match pattern | ||
replaceValues( | ||
pattern: RegExp | string, | ||
replaced: { (substring: string, ...args: any[]): string } | string | ||
): this | ||
/** | ||
@@ -342,7 +346,2 @@ * Returns `true` if callback returns `true` for (at least) one | ||
): false | undefined | ||
walkAtRules( | ||
callback: (atRule: AtRule, index: number) => false | void | ||
): false | undefined | ||
/** | ||
@@ -382,2 +381,6 @@ * Traverses the container’s descendant nodes, calling callback | ||
walkAtRules( | ||
callback: (atRule: AtRule, index: number) => false | void | ||
): false | undefined | ||
walkComments( | ||
@@ -390,5 +393,2 @@ callback: (comment: Comment, indexed: number) => false | void | ||
): false | undefined | ||
walkDecls( | ||
callback: (decl: Declaration, index: number) => false | void | ||
): false | undefined | ||
@@ -428,7 +428,5 @@ /** | ||
): false | undefined | ||
walkRules( | ||
callback: (rule: Rule, index: number) => false | void | ||
walkDecls( | ||
callback: (decl: Declaration, index: number) => false | void | ||
): false | undefined | ||
/** | ||
@@ -460,2 +458,5 @@ * Traverses the container’s descendant nodes, calling callback | ||
): false | undefined | ||
walkRules( | ||
callback: (rule: Rule, index: number) => false | void | ||
): false | undefined | ||
} | ||
@@ -462,0 +463,0 @@ |
@@ -10,3 +10,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.4.26' | ||
this.version = '8.4.27' | ||
this.plugins = this.normalize(plugins) | ||
@@ -13,0 +13,0 @@ } |
{ | ||
"name": "postcss", | ||
"version": "8.4.26", | ||
"version": "8.4.27", | ||
"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
195586
6715