html-demo-element
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -48,3 +48,3 @@ import "https://unpkg.com/prismjs@1.29.0/components/prism-core.min.js"; | ||
static version = '1.0.9'; | ||
static version = '1.0.10'; | ||
@@ -117,3 +117,3 @@ get source(){ return this._source } | ||
if( !this._source ) | ||
this.source = template || this.initialHTML; | ||
this.source = template || this.initialHTML || this.innerHTML; | ||
@@ -120,0 +120,0 @@ const demoDom = [...this.childNodes]; |
{ | ||
"name": "html-demo-element", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Webcomponent inserts prism JS syntax colored HTML in html-demo-element before actual dom", | ||
@@ -5,0 +5,0 @@ "author": "Sasha Firsov", |
@@ -18,3 +18,3 @@ # html-demo-element | ||
<script type="module" src="https://unpkg.com/html-demo-element@1.0.9/html-demo-element.js"></script> | ||
<script type="module" src="https://unpkg.com/html-demo-element@1.0.10/html-demo-element.js"></script> | ||
<script type="module" src="https://unpkg.com/slotted-element@1.0.3/slotted-element.js"></script> | ||
@@ -55,4 +55,4 @@ ``` | ||
# Live demo | ||
* https://unpkg.com/html-demo-element@1.0.9/demo/index.html | ||
* https://unpkg.com/html-demo-element@1.0.9/demo/advanced.html | ||
* https://unpkg.com/html-demo-element@1.0.10/demo/index.html | ||
* https://unpkg.com/html-demo-element@1.0.10/demo/advanced.html | ||
* https://unpkg.com/slotted-element@1.0.3/demo/index.html | ||
@@ -59,0 +59,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
121300
8