@github/include-fragment-element
Advanced tools
Comparing version 5.3.2 to 6.0.0
@@ -11,2 +11,3 @@ export default class IncludeFragmentElement extends HTMLElement { | ||
attributeChangedCallback(attribute: string, oldVal: string | null): void; | ||
constructor(); | ||
connectedCallback(): void; | ||
@@ -13,0 +14,0 @@ request(): Request; |
@@ -133,2 +133,12 @@ const privateData = new WeakMap(); | ||
} | ||
constructor() { | ||
super(); | ||
this.attachShadow({ mode: 'open' }).innerHTML = ` | ||
<style> | ||
:host { | ||
display: block; | ||
} | ||
</style> | ||
<slot></slot>`; | ||
} | ||
connectedCallback() { | ||
@@ -135,0 +145,0 @@ if (this.src && this.loading === 'eager') { |
{ | ||
"name": "@github/include-fragment-element", | ||
"version": "5.3.2", | ||
"version": "6.0.0", | ||
"main": "dist/index.js", | ||
@@ -17,3 +17,3 @@ "module": "dist/index.js", | ||
"prebuild": "npm run clean && npm run lint && mkdir dist", | ||
"build": "tsc && cp src/index.css dist/index.css", | ||
"build": "tsc", | ||
"pretest": "npm run build", | ||
@@ -27,13 +27,13 @@ "test": "karma start ./test/karma.config.cjs", | ||
"@github/prettier-config": "0.0.4", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.5.1", | ||
"eslint-plugin-github": "^4.0.1", | ||
"karma": "^5.0.9", | ||
"chai": "^4.3.4", | ||
"eslint": "^7.31.0", | ||
"eslint-plugin-github": "^4.1.5", | ||
"karma": "^6.3.4", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-firefox-launcher": "^1.2.0", | ||
"karma-firefox-launcher": "^2.1.1", | ||
"karma-mocha": "^2.0.1", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"mocha": "^7.2.0", | ||
"typescript": "^3.9.3" | ||
"mocha": "^9.0.3", | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -40,0 +40,0 @@ "eslintIgnore": [ |
@@ -56,4 +56,2 @@ # <include-fragment> element | ||
The | ||
### Errors | ||
@@ -60,0 +58,0 @@ |
13838
198
5
140