Socket
Socket
Sign inDemoInstall

@open-wc/semantic-dom-diff

Package Overview
Dependencies
Maintainers
2
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-wc/semantic-dom-diff - npm Package Compare versions

Comparing version 0.14.3 to 0.15.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.15.0](https://github.com/open-wc/open-wc/compare/@open-wc/semantic-dom-diff@0.14.3...@open-wc/semantic-dom-diff@0.15.0) (2019-10-22)
### Features
* **semantic-dom-diff:** strip attributes that contains only whitespace ([0db1e73](https://github.com/open-wc/open-wc/commit/0db1e73))
## [0.14.3](https://github.com/open-wc/open-wc/compare/@open-wc/semantic-dom-diff@0.14.2...@open-wc/semantic-dom-diff@0.14.3) (2019-10-13)

@@ -8,0 +19,0 @@

2

get-diffable-html.js

@@ -122,3 +122,3 @@ const DEFAULT_IGNORE_TAGS = ['script', 'style', 'svg'];

function shouldStripAttribute({ name, value }) {
return stripEmptyAttributes.includes(name) && value === '';
return stripEmptyAttributes.includes(name) && value.trim() === '';
}

@@ -125,0 +125,0 @@

{
"name": "@open-wc/semantic-dom-diff",
"version": "0.14.3",
"version": "0.15.0",
"description": "To compare dom and shadow dom trees. Part of open-wc recommendations",

@@ -30,3 +30,3 @@ "author": "open-wc",

},
"gitHead": "974dfc632ee1155528be87966bb3fa8ae5fab58d"
"gitHead": "dc96315f8159b786a80f55b3e3d5fda5071734c1"
}
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