light-dom-element
Advanced tools
Comparing version 0.0.5 to 0.0.7
@@ -9,13 +9,3 @@ import { CssChain as $ } from "css-chain"; | ||
{ $( this ).template( t ); | ||
const s = this; | ||
s.querySelectorAll('slot[attribute]').forEach( a => | ||
{ let f = attr(a,'for') | ||
, s = f ? a.getRootNode().querySelector('#'+f) : a.parentElement; | ||
s.setAttribute( attr( a, 'attribute' ) | ||
, a.assignedElements().map( l=>attr( l, 'href') | ||
|| attr( l, 'src') | ||
|| l.innerText).join('')) | ||
}); | ||
this.postTemplateCallback( this ); | ||
return this; | ||
@@ -22,0 +12,0 @@ } |
{ | ||
"name": "light-dom-element", | ||
"version": "0.0.5", | ||
"version": "0.0.7", | ||
"description": "light-dom-element web component to render local and remote template", | ||
@@ -42,5 +42,5 @@ "author": { | ||
"css-chain": "^1.1.7", | ||
"shadow-dom-element": "^0.0.6" | ||
"shadow-dom-element": "^0.0.7" | ||
}, | ||
"customElements": "custom-elements.json" | ||
} |
@@ -13,3 +13,3 @@ # light-dom-element | ||
[![git](https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg) GitHub](https://github.com/sashafirsov/light-dom-element) | ||
| Demo: [light-dom-element](https://unpkg.com/light-dom-element@0.0.5/index.html) | ||
| Demo: [light-dom-element](https://unpkg.com/light-dom-element@0.0.7/index.html) | ||
| [tests project](https://github.com/sashafirsov/light-dom-element-test) | ||
@@ -78,3 +78,3 @@ | ||
[npm-url]: https://npmjs.org/package/light-dom-element | ||
[coverage-image]: https://unpkg.com/light-dom-element-test@0.0.5/coverage/coverage.svg | ||
[coverage-url]: https://unpkg.com/light-dom-element-test@0.0.5/coverage/lcov-report/index.html | ||
[coverage-image]: https://unpkg.com/light-dom-element-test@0.0.7/coverage/coverage.svg | ||
[coverage-url]: https://unpkg.com/light-dom-element-test@0.0.7/coverage/lcov-report/index.html |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 5 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
985661
141
126
69
+ Addedshadow-dom-element@0.0.7(transitive)
- Removedshadow-dom-element@0.0.6(transitive)
Updatedshadow-dom-element@^0.0.7