@knowark/componarkjs 1.13.2 → 1.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/jsconfig.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "esnext",
|
|
4
|
-
"module": "
|
|
4
|
+
"module": "nodenext",
|
|
5
5
|
"moduleResolution": "nodenext",
|
|
6
6
|
"allowJs": true,
|
|
7
7
|
"checkJs": true,
|
|
@@ -15,9 +15,5 @@
|
|
|
15
15
|
"*"
|
|
16
16
|
]
|
|
17
17
|
}
|
|
18
|
-
}
|
|
19
|
-
"exclude": [
|
|
20
|
-
"node_modules",
|
|
21
|
-
"*/node_modules/"
|
|
22
|
-
]
|
|
18
|
+
}
|
|
23
19
|
}
|
|
@@ -53,7 +53,7 @@ export class Component extends globalThis.HTMLElement {
|
|
|
53
53
|
|
|
54
54
|
connectedCallback () {
|
|
55
55
|
try {
|
|
56
|
-
!(
|
|
56
|
+
!Boolean(Object.keys(this.local).length) && this.init({})
|
|
57
57
|
this.render()
|
|
58
58
|
} catch (error) {
|
|
59
59
|
this.emit('error', error)
|
|
@@ -119,7 +119,8 @@ describe('Component', () => {
|
|
|
119
119
|
})
|
|
120
120
|
|
|
121
121
|
it('calls the load method on connectedCallback', async () => {
|
|
122
|
-
const component =
|
|
122
|
+
const component = /** @type {Component} */ (
|
|
123
|
+
document.createElement('mock-component'))
|
|
123
124
|
const initSpy = jest.spyOn(component, 'init')
|
|
124
125
|
const renderSpy = jest.spyOn(component, 'render')
|
|
125
126
|
const loadSpy = jest.spyOn(component, 'load')
|
|
@@ -133,7 +134,8 @@ describe('Component', () => {
|
|
|
133
134
|
|
|
134
135
|
it('catches and re-raises connectedCallback errors', async () => {
|
|
135
136
|
expect.assertions(1)
|
|
136
|
-
const component =
|
|
137
|
+
const component = /** @type {Component} */ (
|
|
138
|
+
document.createElement('mock-component'))
|
|
137
139
|
const consoleError = console.error
|
|
138
140
|
console.error = jest.fn()
|
|
139
141
|
component.render = () => {
|
package/package.json
CHANGED
package/showcase/index.js
CHANGED
package/knowarkjs.code-workspace
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"folders": [
|
|
3
|
-
{
|
|
4
|
-
"path": "."
|
|
5
|
-
}
|
|
6
|
-
],
|
|
7
|
-
"settings": {
|
|
8
|
-
"editor.tabSize": 2,
|
|
9
|
-
"editor.insertSpaces": true,
|
|
10
|
-
"editor.detectIndentation": false
|
|
11
|
-
},
|
|
12
|
-
"extensions": {
|
|
13
|
-
"recommendations": [
|
|
14
|
-
"bashmish.es6-string-css",
|
|
15
|
-
"tobermory.es6-string-html",
|
|
16
|
-
"zjcompt.es6-string-javascript",
|
|
17
|
-
"xabikos.javascriptsnippets",
|
|
18
|
-
"graphql.vscode-graphql",
|
|
19
|
-
"dbaeumer.vscode-eslint",
|
|
20
|
-
"syler.sass-indented",
|
|
21
|
-
"yzhang.markdown-all-in-one",
|
|
22
|
-
"mervin.markdown-formatter",
|
|
23
|
-
"shd101wyy.markdown-preview-enhanced",
|
|
24
|
-
"shuworks.vscode-table-formatter",
|
|
25
|
-
"waderyan.gitblame",
|
|
26
|
-
"snooty.snooty",
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
}
|