light-dom-element
Advanced tools
Comparing version 0.0.3 to 0.0.4
/// <reference lib="dom" /> | ||
import '' | ||
import ShadowDomElement from "shadow-dom-element/shadow-dom-element"; | ||
/** | ||
@@ -15,2 +15,10 @@ * Web Component to populate html slots into template using Light DOM. | ||
/** | ||
* Overrides HTMLElement {attachShadow} method to prevent shadow creation. | ||
* called from constructor before `slotsInit()` | ||
* @param init Information about ShadowRoot. | ||
* @returns ShadowRoot | ||
*/ | ||
attachShadow(init: ShadowRootInit): ShadowRoot; // eslint-disable-line no-undef | ||
/** | ||
* applies template content and renders slots, called from `slotsInit()` | ||
@@ -17,0 +25,0 @@ * @param templateElement |
@@ -11,3 +11,2 @@ import { CssChain as $ } from "css-chain"; | ||
((ce,tag)=>ce.get(tag) || ce.define(tag, LightDomElement))(window.customElements,'light-dom-element'); | ||
window.customElements.get('light-dom-element') || window.customElements.define('light-dom-element', LightDomElement); | ||
window.customElements.define('light-dom-element', LightDomElement); |
{ | ||
"name": "light-dom-element", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "light-dom-element web component to render local and remote template", | ||
@@ -42,5 +42,5 @@ "author": { | ||
"css-chain": "^1.1.3", | ||
"shadow-dom-element": "^0.0.3" | ||
"shadow-dom-element": "^0.0.4" | ||
}, | ||
"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.3/demo/index.html) | ||
| Demo: [light-dom-element](https://unpkg.com/light-dom-element@0.0.4/demo/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.3/coverage/coverage.svg | ||
[coverage-url]: https://unpkg.com/light-dom-element-test@0.0.3/coverage/lcov-report/index.html | ||
[coverage-image]: https://unpkg.com/light-dom-element-test@0.0.4/coverage/coverage.svg | ||
[coverage-url]: https://unpkg.com/light-dom-element-test@0.0.4/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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
230456
70
119
21
+ Addedshadow-dom-element@0.0.4(transitive)
- Removedshadow-dom-element@0.0.3(transitive)
Updatedshadow-dom-element@^0.0.4