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

@dreamworld/web-util

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/web-util - npm Package Compare versions

Comparing version 1.3.1-trim-html-is-not-woking-with-nested-html.3 to 1.3.1-trim-html-is-not-woking-with-nested-html.4

2

htmlTrim.js

@@ -48,2 +48,3 @@ import textToHtml from './textToHtml';

childNodes = Array.from(el.childNodes || []);
if(!trimStart && childNodes && childNodes[0]) {

@@ -102,2 +103,3 @@ trimStartTextNode(childNodes[0]);

//If text node is not found
childNodes = Array.from(el.childNodes || []).reverse();
if(!trimEnd && childNodes && childNodes[0]) {

@@ -104,0 +106,0 @@ trimEndTextNode(childNodes[0]);

2

package.json
{
"name": "@dreamworld/web-util",
"version": "1.3.1-trim-html-is-not-woking-with-nested-html.3",
"version": "1.3.1-trim-html-is-not-woking-with-nested-html.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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