New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/parse5

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/parse5 - npm Package Compare versions

Comparing version

to
5.0.2

35

parse5/index.d.ts

@@ -142,2 +142,12 @@ // Type definitions for parse5 5.0

/**
* Default tree adapter ChildNode interface.
*/
export interface DefaultTreeChildNode extends DefaultTreeNode {
/**
* Parent node.
*/
parentNode: DefaultTreeParentNode;
}
/**
* Default tree adapter DocumentType interface.

@@ -191,3 +201,3 @@ */

*/
export interface DefaultTreeElement extends DefaultTreeParentNode {
export interface DefaultTreeElement extends DefaultTreeChildNode, DefaultTreeParentNode {
/**

@@ -210,6 +220,2 @@ * The name of the node. Equals to element {@link tagName}.

/**
* Parent node.
*/
parentNode: DefaultTreeParentNode;
/**
* Element source code location info. Available if location info is enabled via {@link ParserOptions}.

@@ -223,3 +229,3 @@ */

*/
export interface DefaultTreeCommentNode extends DefaultTreeNode {
export interface DefaultTreeCommentNode extends DefaultTreeChildNode {
/**

@@ -234,6 +240,2 @@ * The name of the node.

/**
* Parent node.
*/
parentNode: DefaultTreeParentNode;
/**
* Comment source code location info. Available if location info is enabled via {@link ParserOptions}.

@@ -247,3 +249,3 @@ */

*/
export interface DefaultTreeTextNode extends DefaultTreeNode {
export interface DefaultTreeTextNode extends DefaultTreeChildNode {
/**

@@ -258,6 +260,2 @@ * The name of the node.

/**
* Parent node.
*/
parentNode: DefaultTreeParentNode;
/**
* Text node source code location info. Available if location info is enabled via {@link ParserOptions}.

@@ -275,2 +273,7 @@ */

/**
* Generic ChildNode interface.
* Cast to the actual AST interface (e.g. {@link parse5.DefaultTreeChildNode}) to get access to the properties.
*/
export type ChildNode = DefaultTreeChildNode | object;
/**
* Generic ParentNode interface.

@@ -461,3 +464,3 @@ * Cast to the actual AST interface (e.g. {@link parse5.DefaultTreeParentNode}) to get access to the properties.

*/
getParentNode(node: Node): ParentNode;
getParentNode(node: ChildNode): ParentNode;
/**

@@ -464,0 +467,0 @@ * Returns the given element's attributes in an array, in the form of name-value pairs.

{
"name": "@types/parse5",
"version": "5.0.1",
"version": "5.0.2",
"description": "TypeScript definitions for parse5",

@@ -22,4 +22,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "5b663ce80dc500a2df67c76d433daa7df5d504d2de9639397cdfd0a399c42dff",
"typesPublisherContentHash": "5358e2aced4b49510e3755f0b3c9d8217678083c8385647ed35282f5c58da8c1",
"typeScriptVersion": "2.2"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 11 Jul 2019 00:19:21 GMT
* Last updated: Fri, 19 Jul 2019 16:25:04 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none