You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

light-dom-element

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-dom-element - npm Package Compare versions

Comparing version

to
0.0.4

.git/objects/02/17af5e6e4cae39812f7e25c70b586ccb21814d

10

light-dom-element.d.ts
/// <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

3

light-dom-element.js

@@ -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