Socket
Socket
Sign inDemoInstall

@open-wc/chai-dom-equals

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-wc/chai-dom-equals - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

7

chai-dom-equals.js

@@ -7,7 +7,7 @@ import { getSemanticDomDiff } from '@open-wc/semantic-dom-diff';

*/
export const getOuterHtml = (el) => {
export const getOuterHtml = el => {
if (window.ShadyCSS && window.ShadyCSS.nativeShadow === false) {
const tagName = el.tagName.toLowerCase();
let attributes = ' ';
Array.prototype.slice.call(el.attributes).forEach((item) => {
Array.prototype.slice.call(el.attributes).forEach(item => {
attributes += `${item.name}="${item.value}" `;

@@ -26,3 +26,3 @@ });

*/
export const getCleanedShadowDom = (el) => {
export const getCleanedShadowDom = el => {
if (window.ShadyCSS && window.ShadyCSS.nativeShadow === false) {

@@ -61,2 +61,3 @@ const tagName = el.tagName.toLowerCase();

// can not be an arrow function as it gets rebound
// prettier-ignore
const domEquals = _super => function handleDom(value, ...args) {

@@ -63,0 +64,0 @@ if (!utils.flag(this, 'semantically') && utils.flag(this, 'dom')) {

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

## [0.6.1](https://github.com/open-wc/open-wc/tree/master/packages/chai-dom-equals/compare/@open-wc/chai-dom-equals@0.6.0...@open-wc/chai-dom-equals@0.6.1) (2018-12-13)
### Bug Fixes
* apply prettier; add lint-staged ([43acfad](https://github.com/open-wc/open-wc/tree/master/packages/chai-dom-equals/commit/43acfad))
# [0.6.0](https://github.com/open-wc/open-wc/tree/master/packages/chai-dom-equals/compare/@open-wc/chai-dom-equals@0.5.3...@open-wc/chai-dom-equals@0.6.0) (2018-12-11)

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

// eslint-disable-next-line import/no-extraneous-dependencies
const createBaseConfig = require('@open-wc/testing-karma-bs/create-karma-es5-bs.config');
module.exports = (config) => {
module.exports = config => {
const baseConfig = createBaseConfig(config);

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

{
"name": "@open-wc/chai-dom-equals",
"version": "0.6.0",
"version": "0.6.1",
"description": "Chai Plugin to compare dom and shadow dom trees. Part of open-wc recommendations",

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

"dependencies": {
"@open-wc/semantic-dom-diff": "^0.5.0",
"@open-wc/semantic-dom-diff": "^0.5.1",
"@types/chai": "^4.1.7"

@@ -23,9 +23,9 @@ },

"@bundled-es-modules/chai": "^4.2.0",
"@open-wc/testing-helpers": "^0.5.0",
"@open-wc/testing-karma": "^0.2.3",
"@open-wc/testing-karma-bs": "^0.1.3",
"@open-wc/testing-helpers": "^0.5.1",
"@open-wc/testing-karma": "^0.3.0",
"@open-wc/testing-karma-bs": "^0.1.4",
"@open-wc/testing-wallaby": "^0.1.4",
"mocha": "^5.0.0"
},
"gitHead": "e04c1ee29c25e8a78e20850104cecee9bcb50c91"
"gitHead": "d86afc490b57c2f8d4b7edf63b4b930b4770b991"
}
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