@domql/element 3.6.6 → 3.6.8
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/LICENSE +25 -12
- package/create.js +1 -1
- package/dist/cjs/create.js +1 -1
- package/dist/cjs/event/on.js +2 -2
- package/dist/esm/create.js +1 -1
- package/dist/esm/event/on.js +2 -2
- package/dist/iife/index.js +7 -7
- package/event/on.js +2 -2
- package/package.json +6 -6
package/LICENSE
CHANGED
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
Creative Commons Attribution-NonCommercial 4.0 International License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2023 symbo.ls
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
This work is licensed under the Creative Commons Attribution-NonCommercial
|
|
6
|
+
4.0 International License. To view a copy of this license, visit
|
|
7
|
+
https://creativecommons.org/licenses/by-nc/4.0/ or send a letter to
|
|
8
|
+
Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
copies or substantial portions of the Software.
|
|
10
|
+
You are free to:
|
|
14
11
|
|
|
15
|
-
|
|
12
|
+
Share — copy and redistribute the material in any medium or format
|
|
13
|
+
Adapt — remix, transform, and build upon the material
|
|
14
|
+
|
|
15
|
+
Under the following terms:
|
|
16
|
+
|
|
17
|
+
Attribution — You must give appropriate credit, provide a link to the
|
|
18
|
+
license, and indicate if changes were made. You may do so in any
|
|
19
|
+
reasonable manner, but not in any way that suggests the licensor endorses
|
|
20
|
+
you or your use.
|
|
21
|
+
|
|
22
|
+
NonCommercial — You may not use the material for commercial purposes.
|
|
23
|
+
|
|
24
|
+
No additional restrictions — You may not apply legal terms or
|
|
25
|
+
technological measures that legally restrict others from doing anything
|
|
26
|
+
the license permits.
|
|
27
|
+
|
|
28
|
+
THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
29
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
30
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
31
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
32
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE
|
|
21
|
-
|
|
33
|
+
OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN THE
|
|
34
|
+
WORK.
|
package/create.js
CHANGED
|
@@ -200,7 +200,7 @@ const renderElement = (element, parent, options, attachOptions) => {
|
|
|
200
200
|
isDemoComponent ? isDemoComponent + ' ' : '' + path.join('.')
|
|
201
201
|
)
|
|
202
202
|
element.verbose()
|
|
203
|
-
console.error('[
|
|
203
|
+
console.error('[DOMQL] Render error:', e)
|
|
204
204
|
if (element.on?.error) {
|
|
205
205
|
element.on.error(e, element, element.state, element.context, options)
|
|
206
206
|
}
|
package/dist/cjs/create.js
CHANGED
|
@@ -154,7 +154,7 @@ const renderElement = (element, parent, options, attachOptions) => {
|
|
|
154
154
|
isDemoComponent ? isDemoComponent + " " : "" + path.join(".")
|
|
155
155
|
);
|
|
156
156
|
element.verbose();
|
|
157
|
-
console.error("[
|
|
157
|
+
console.error("[DOMQL] Render error:", e);
|
|
158
158
|
if (element.on?.error) {
|
|
159
159
|
element.on.error(e, element, element.state, element.context, options);
|
|
160
160
|
}
|
package/dist/cjs/event/on.js
CHANGED
|
@@ -57,12 +57,12 @@ const registerNodeEvent = (param, element, node, options) => {
|
|
|
57
57
|
if (result && typeof result.then === "function") {
|
|
58
58
|
result.catch((err) => {
|
|
59
59
|
element.error = err;
|
|
60
|
-
console.error("[
|
|
60
|
+
console.error("[DOMQL] Async DOM event error:", err);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
} catch (err) {
|
|
64
64
|
element.error = err;
|
|
65
|
-
console.error("[
|
|
65
|
+
console.error("[DOMQL] DOM event error:", err);
|
|
66
66
|
if (context?.strictMode) throw err;
|
|
67
67
|
}
|
|
68
68
|
};
|
package/dist/esm/create.js
CHANGED
|
@@ -145,7 +145,7 @@ const renderElement = (element, parent, options, attachOptions) => {
|
|
|
145
145
|
isDemoComponent ? isDemoComponent + " " : "" + path.join(".")
|
|
146
146
|
);
|
|
147
147
|
element.verbose();
|
|
148
|
-
console.error("[
|
|
148
|
+
console.error("[DOMQL] Render error:", e);
|
|
149
149
|
if (element.on?.error) {
|
|
150
150
|
element.on.error(e, element, element.state, element.context, options);
|
|
151
151
|
}
|
package/dist/esm/event/on.js
CHANGED
|
@@ -30,12 +30,12 @@ const registerNodeEvent = (param, element, node, options) => {
|
|
|
30
30
|
if (result && typeof result.then === "function") {
|
|
31
31
|
result.catch((err) => {
|
|
32
32
|
element.error = err;
|
|
33
|
-
console.error("[
|
|
33
|
+
console.error("[DOMQL] Async DOM event error:", err);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
} catch (err) {
|
|
37
37
|
element.error = err;
|
|
38
|
-
console.error("[
|
|
38
|
+
console.error("[DOMQL] DOM event error:", err);
|
|
39
39
|
if (context?.strictMode) throw err;
|
|
40
40
|
}
|
|
41
41
|
};
|
package/dist/iife/index.js
CHANGED
|
@@ -1807,13 +1807,13 @@ var DomqlElement = (() => {
|
|
|
1807
1807
|
if (result && typeof result.then === "function") {
|
|
1808
1808
|
result.catch((err) => {
|
|
1809
1809
|
element.error = err;
|
|
1810
|
-
console.error("[
|
|
1810
|
+
console.error("[DOMQL] Async event error:", err);
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
return result;
|
|
1814
1814
|
} catch (err) {
|
|
1815
1815
|
element.error = err;
|
|
1816
|
-
console.error("[
|
|
1816
|
+
console.error("[DOMQL] Event handler error:", err);
|
|
1817
1817
|
if (element.context?.strictMode) throw err;
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
@@ -1841,13 +1841,13 @@ var DomqlElement = (() => {
|
|
|
1841
1841
|
if (result && typeof result.then === "function") {
|
|
1842
1842
|
result.catch((err) => {
|
|
1843
1843
|
element.error = err;
|
|
1844
|
-
console.error("[
|
|
1844
|
+
console.error("[DOMQL] Async event update error:", err);
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
1847
1847
|
return result;
|
|
1848
1848
|
} catch (err) {
|
|
1849
1849
|
element.error = err;
|
|
1850
|
-
console.error("[
|
|
1850
|
+
console.error("[DOMQL] Event update error:", err);
|
|
1851
1851
|
if (element.context?.strictMode) throw err;
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
@@ -3818,12 +3818,12 @@ ${element}` : "";
|
|
|
3818
3818
|
if (result && typeof result.then === "function") {
|
|
3819
3819
|
result.catch((err) => {
|
|
3820
3820
|
element.error = err;
|
|
3821
|
-
console.error("[
|
|
3821
|
+
console.error("[DOMQL] Async DOM event error:", err);
|
|
3822
3822
|
});
|
|
3823
3823
|
}
|
|
3824
3824
|
} catch (err) {
|
|
3825
3825
|
element.error = err;
|
|
3826
|
-
console.error("[
|
|
3826
|
+
console.error("[DOMQL] DOM event error:", err);
|
|
3827
3827
|
if (context?.strictMode) throw err;
|
|
3828
3828
|
}
|
|
3829
3829
|
};
|
|
@@ -6522,7 +6522,7 @@ ${element}` : "";
|
|
|
6522
6522
|
isDemoComponent ? isDemoComponent + " " : "" + path.join(".")
|
|
6523
6523
|
);
|
|
6524
6524
|
element.verbose();
|
|
6525
|
-
console.error("[
|
|
6525
|
+
console.error("[DOMQL] Render error:", e);
|
|
6526
6526
|
if (element.on?.error) {
|
|
6527
6527
|
element.on.error(e, element, element.state, element.context, options);
|
|
6528
6528
|
}
|
package/event/on.js
CHANGED
|
@@ -39,12 +39,12 @@ const registerNodeEvent = (param, element, node, options) => {
|
|
|
39
39
|
if (result && typeof result.then === 'function') {
|
|
40
40
|
result.catch((err) => {
|
|
41
41
|
element.error = err
|
|
42
|
-
console.error('[
|
|
42
|
+
console.error('[DOMQL] Async DOM event error:', err)
|
|
43
43
|
})
|
|
44
44
|
}
|
|
45
45
|
} catch (err) {
|
|
46
46
|
element.error = err
|
|
47
|
-
console.error('[
|
|
47
|
+
console.error('[DOMQL] DOM event error:', err)
|
|
48
48
|
if (context?.strictMode) throw err
|
|
49
49
|
}
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "3.6.
|
|
4
|
-
"license": "
|
|
3
|
+
"version": "3.6.8",
|
|
4
|
+
"license": "CC-BY-NC-4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
7
7
|
"main": "./dist/cjs/index.js",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"build:iife": "cross-env NODE_ENV=$NODE_ENV esbuild index.js --bundle --target=es2020 --format=iife --global-name=DomqlElement --outfile=dist/iife/index.js --define:process.env.NODE_ENV=process.env.NODE_ENV"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@domql/report": "^3.6.
|
|
50
|
-
"@domql/state": "^3.6.
|
|
51
|
-
"@domql/utils": "^3.6.
|
|
52
|
-
"attrs-in-props": "^3.6.
|
|
49
|
+
"@domql/report": "^3.6.8",
|
|
50
|
+
"@domql/state": "^3.6.8",
|
|
51
|
+
"@domql/utils": "^3.6.8",
|
|
52
|
+
"attrs-in-props": "^3.6.8"
|
|
53
53
|
},
|
|
54
54
|
"gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
|
|
55
55
|
"devDependencies": {
|