Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dom-serializer

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-serializer - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

13

lib/index.js

@@ -120,5 +120,6 @@ "use strict";

switch (node.type) {
case "root":
case ElementType.Root:
return render(node.children, options);
case ElementType.Directive:
case ElementType.Doctype:
return renderDirective(node);

@@ -129,6 +130,8 @@ case ElementType.Comment:

return renderCdata(node);
default:
return ElementType.isTag(node)
? renderTag(node, options)
: renderText(node, options);
case ElementType.Script:
case ElementType.Style:
case ElementType.Tag:
return renderTag(node, options);
case ElementType.Text:
return renderText(node, options);
}

@@ -135,0 +138,0 @@ }

{
"name": "dom-serializer",
"version": "1.1.0",
"version": "1.2.0",
"description": "render dom nodes to string",

@@ -23,3 +23,3 @@ "author": "Felix Boehm <me@feedic.com>",

"domelementtype": "^2.0.1",
"domhandler": "^3.0.0",
"domhandler": "^4.0.0",
"entities": "^2.0.0"

@@ -37,3 +37,3 @@ },

"eslint-config-prettier": "^6.0.0",
"htmlparser2": "~4.1.0",
"htmlparser2": "~5.0.0",
"jest": "^26.0.1",

@@ -40,0 +40,0 @@ "prettier": "^2.0.5",

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