@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": "esnext",
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
- !(this.state || Object.keys(this.local).length) && this.init({})
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 = document.createElement('mock-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 = document.createElement('mock-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowark/componarkjs",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "author": "Knowark",
5
5
  "description": "Knowark's Web Components Library",
6
6
  "license": "ISC",
@@ -8,7 +8,7 @@
8
8
  <script type="importmap">
9
9
  {
10
10
  "imports": {
11
- "@knowark/componarkjs": "https://unpkg.com/@knowark/componarkjs@1.11.1/lib/index.js"
11
+ "@knowark/componarkjs": "https://unpkg.com/@knowark/componarkjs@1.13.3/lib/index.js"
12
12
  }
13
13
  }
14
14
  </script>
package/showcase/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-ignore
1
2
  const version = VERSION
2
3
 
3
4
  const versionElement = document.getElementById('version')
@@ -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
- }