Socket
Socket
Sign inDemoInstall

domelementtype

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domelementtype - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

readme.md

4

lib/index.d.ts
/** Types of elements found in htmlparser2's DOM */
export declare const enum ElementType {
/** Type for the root element of a document */
Root = "root",
/** Type for Text */

@@ -28,2 +30,4 @@ Text = "text",

}): boolean;
/** Type for the root element of a document */
export declare const Root = ElementType.Root;
/** Type for Text */

@@ -30,0 +34,0 @@ export declare const Text = ElementType.Text;

4

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.isTag = void 0;
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = void 0;
/**

@@ -16,2 +16,4 @@ * Tests whether an element is a tag or not.

// Exports for backwards compatibility
/** Type for the root element of a document */
exports.Root = "root" /* Root */;
/** Type for Text */

@@ -18,0 +20,0 @@ exports.Text = "text" /* Text */;

{
"name": "domelementtype",
"version": "2.0.2",
"version": "2.1.0",
"description": "all the types of nodes in htmlparser2's dom",

@@ -5,0 +5,0 @@ "author": "Felix Boehm <me@feedic.com>",

Sorry, the diff of this file is not supported yet

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