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

@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.4.0 to 0.4.1

11

CHANGELOG.md

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

## [0.4.1](https://github.com/open-wc/open-wc/tree/master/packages/semantic-dom-diff/compare/@open-wc/semantic-dom-diff@0.4.0...@open-wc/semantic-dom-diff@0.4.1) (2018-11-30)
### Bug Fixes
* move documentation to READMEs of packages ([b4a0426](https://github.com/open-wc/open-wc/tree/master/packages/semantic-dom-diff/commit/b4a0426))
# [0.4.0](https://github.com/open-wc/open-wc/tree/master/packages/semantic-dom-diff/compare/@open-wc/semantic-dom-diff@0.3.0...@open-wc/semantic-dom-diff@0.4.0) (2018-11-26)

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

10

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

@@ -22,8 +22,8 @@ "author": "open-wc",

"@bundled-es-modules/chai": "^4.2.0",
"@open-wc/testing-karma": "^0.2.0",
"@open-wc/testing-karma-bs": "^0.1.0",
"@open-wc/testing-wallaby": "^0.1.3",
"@open-wc/testing-karma": "^0.2.1",
"@open-wc/testing-karma-bs": "^0.1.1",
"@open-wc/testing-wallaby": "^0.1.4",
"mocha": "^5.0.0"
},
"gitHead": "91d6d70f98a9dbf142623768b7c97dce9c9db090"
"gitHead": "66a2109658155192522ed92f365a2652029c3ce0"
}

@@ -1,6 +0,6 @@

# Open Web Component Recommendations to compare dom and shadowDom trees
# Semantic Dom Diff
> Part of Open Web Component Recommendations [open-wc](https://github.com/open-wc/open-wc/)
> Part of Open Web Component Recommendation [open-wc](https://github.com/open-wc/open-wc/)
We want to provide a good set of default on how to vasilitate your web component.
We want to provide a good set of default on how to facilitate your web component.

@@ -10,1 +10,22 @@ [![CircleCI](https://circleci.com/gh/open-wc/open-wc.svg?style=shield)](https://circleci.com/gh/open-wc/open-wc)

[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)
## Manual Setup
```bash
yarn add @open-wc/semantic-dom-diff --dev
```
## Basics
```javascript
import { getSemanticDomDiff } from '@open-wc/semantic-dom-diff';
const leftTree = `
<div>foo</div>
`;
const rightTree = `
<div>bar</div>
`;
// Diff will be an object if there is a difference, otherwise undefined
const diff = getSemanticDomDiff(leftTree, rightTree);
```
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