Socket
Socket
Sign inDemoInstall

@types/cheerio

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cheerio - npm Package Compare versions

Comparing version 0.22.22 to 0.22.23

28

cheerio/index.d.ts

@@ -19,16 +19,24 @@ // Type definitions for Cheerio v0.22.0

declare namespace cheerio {
interface Element {
// Document References
// Node Console
type Element = TextElement | TagElement;
interface TextElement {
type: 'text';
next: Element | null;
prev: Element | null;
parent: Element;
data?: string;
}
interface TagElement {
tagName: string;
type: string;
type: 'tag';
name: string;
attribs: { [attr: string]: string };
children: Element[];
childNodes: Element[];
lastChild: Element;
firstChild: Element;
next: Element;
childNodes: Element[] | null;
lastChild: Element | null;
firstChild: Element | null;
next: Element | null;
nextSibling: Element;
prev: Element;
prev: Element | null;
previousSibling: Element;

@@ -290,3 +298,3 @@ parent: Element;

contains(container: Element, contained: Element): boolean;
parseHTML(data: string, context?: Document, keepScripts?: boolean): Document[];
parseHTML(data: string, context?: Document | null, keepScripts?: boolean): Document[];

@@ -293,0 +301,0 @@ html(options?: CheerioParserOptions): string;

{
"name": "@types/cheerio",
"version": "0.22.22",
"version": "0.22.23",
"description": "TypeScript definitions for Cheerio",

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

},
"typesPublisherContentHash": "4f80eed4abe488886b4cd7112b5ea9654f1e496c2161a67e6cfcb5d2432bc881",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "1455d2000eb9a887a66b847bc41dbf2623dec11a692188de094eeb21ecd60fe1",
"typeScriptVersion": "3.3"
}

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

### Additional Details
* Last updated: Wed, 23 Sep 2020 19:15:26 GMT
* Last updated: Tue, 08 Dec 2020 04:51:29 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc