Socket
Socket
Sign inDemoInstall

@open-wc/semantic-dom-diff

Package Overview
Dependencies
Maintainers
3
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.17.9 to 0.17.10

11

CHANGELOG.md

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

## [0.17.10](https://github.com/open-wc/open-wc/compare/@open-wc/semantic-dom-diff@0.17.9...@open-wc/semantic-dom-diff@0.17.10) (2020-08-27)
### Bug Fixes
* **semantic-dom-diff:** fix unescaped attributes ([375180d](https://github.com/open-wc/open-wc/commit/375180de30abef00a05ac84bb30f62555f0d7059))
## [0.17.9](https://github.com/open-wc/open-wc/compare/@open-wc/semantic-dom-diff@0.17.8...@open-wc/semantic-dom-diff@0.17.9) (2020-04-26)

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

2

get-diffable-html.d.ts

@@ -39,3 +39,3 @@ /**

*/
export function getDiffableHTML(html: string | Node, options?: DiffOptions): string;
export function getDiffableHTML(html: Node | string, options?: DiffOptions): string;
/**

@@ -42,0 +42,0 @@ * @param {*} arg

@@ -79,2 +79,5 @@ const DEFAULT_IGNORE_TAGS = ['script', 'style', 'svg'];

const stripEmptyAttributes = options.stripEmptyAttributes || DEFAULT_EMPTY_ATTRS;
const escapeAttributes = /(&|")/g;
/** @param {string} match */
const escapeAttributesFn = match => (match === '&' ? '&' : '"');

@@ -133,3 +136,3 @@ let text = '';

if (name === 'class') return ` class="${getClassListValueString(el)}"`;
return ` ${name}="${value}"`;
return ` ${name}="${value.replace(escapeAttributes, escapeAttributesFn)}"`;
}

@@ -136,0 +139,0 @@

{
"name": "@open-wc/semantic-dom-diff",
"version": "0.17.9",
"version": "0.17.10",
"publishConfig": {

@@ -33,3 +33,3 @@ "access": "public"

},
"gitHead": "11053d638d9d6882d647550f7e1e5999b62552fb"
"gitHead": "aeb07b36e9651d4c5c5770f4dd28c44042bb90c6"
}

@@ -0,1 +1,9 @@

---
permalink: 'testing/semantic-dom-diff.html'
title: Semantic Dom Diff
section: guides
tags:
- guides
---
# Semantic Dom Diff

@@ -284,13 +292,1 @@

```
<script>
export default {
mounted() {
const editLink = document.querySelector('.edit-link a');
if (editLink) {
const url = editLink.href;
editLink.href = url.substr(0, url.indexOf('/master/')) + '/master/packages/semantic-dom-diff/README.md';
}
}
}
</script>
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