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.15.4 to 0.15.5

8

CHANGELOG.md

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

## [0.15.5](https://github.com/open-wc/open-wc/compare/@open-wc/semantic-dom-diff@0.15.4...@open-wc/semantic-dom-diff@0.15.5) (2020-01-07)
**Note:** Version bump only for package @open-wc/semantic-dom-diff
## [0.15.4](https://github.com/open-wc/open-wc/compare/@open-wc/semantic-dom-diff@0.15.3...@open-wc/semantic-dom-diff@0.15.4) (2019-11-24)

@@ -8,0 +16,0 @@

@@ -41,10 +41,31 @@ /**

export type IgnoreAttributesForTags = {
/**
* tags on which to ignore the given attributes
*/
tags: string[];
/**
* attributes to ignore for the given tags
*/
attributes: string[];
};
export type DiffOptions = {
/**
* array of attributes to ignore, when given a string that attribute will be ignored on all tags
* when given an object of type `IgnoreAttributesForTags`, you can specify on which tags to ignore which attributes
*/
ignoreAttributes?: (string | IgnoreAttributesForTags)[];
/**
* array of tags to ignore, these tags are stripped from the output
*/
ignoreTags?: string[];
/**
* array of tags whose children to ignore, the children of
* these tags are stripped from the output
*/
ignoreChildren?: string[];
/**
* array of attributes which should be removed when empty.
* Be careful not to add any boolean attributes here (e.g. `hidden`) unless you know what you're doing
*/
stripEmptyAttributes?: string[];
};

6

package.json
{
"name": "@open-wc/semantic-dom-diff",
"version": "0.15.4",
"version": "0.15.5",
"publishConfig": {

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

"devDependencies": {
"@open-wc/testing-helpers": "^1.4.0",
"@open-wc/testing-helpers": "^1.5.0",
"chai": "^4.2.0",

@@ -36,3 +36,3 @@ "mocha": "^6.2.2"

"module": "index.js",
"gitHead": "61cfb4b15d4033c1a4640875a3672fd0d91f5ed3"
"gitHead": "1ad98d8ae7bfedf7559e6a00a0fb25a069811366"
}

@@ -278,7 +278,7 @@ # Semantic Dom Diff

`,
{ ignoreChildren: ['my-custom-element'] },
{ ignoreChildren: ['my-custom-input'] },
);
expect(el).dom.to.equalSnapshot({
ignoreChildren: ['my-custom-element'],
ignoreChildren: ['my-custom-input'],
});

@@ -285,0 +285,0 @@ });

export function snapshotPath(rootNode: any): any[];
/**
* el.outerHTML is not polyfilled so we need to recreate the tag + attributes and
* combine it with el.innerHTML.
*
* @param {Element} el Element you want to get the out Html from
* @returns {String} outer html
*/
export const getOuterHtml: (el: Element) => string;
/**
* For comparision we do not need the style scoping classes on polyfilled browsers
* Rather naive approach for now - probably need to improve once we have failing cases.
*
* @param {Element} el Element you want to get the cleaned shadow dom
* @returns {String} cleaned shadow dom
*/
export const getCleanedShadowDom: (el: Element) => string;
export function getOuterHtml(el: Element): string;
export function getCleanedShadowDom(el: Element): string;
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