@domql/utils 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 CHANGED
@@ -1,21 +1,34 @@
1
- MIT License
1
+ Creative Commons Attribution-NonCommercial 4.0 International License
2
2
 
3
3
  Copyright (c) 2023 symbo.ls
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
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
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
10
+ You are free to:
14
11
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
33
+ OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN THE
34
+ WORK.
@@ -46,13 +46,13 @@ const applyEvent = (param, element, state, context, options) => {
46
46
  if (result && typeof result.then === "function") {
47
47
  result.catch((err) => {
48
48
  element.error = err;
49
- console.error("[DomQL] Async event error:", err);
49
+ console.error("[DOMQL] Async event error:", err);
50
50
  });
51
51
  }
52
52
  return result;
53
53
  } catch (err) {
54
54
  element.error = err;
55
- console.error("[DomQL] Event handler error:", err);
55
+ console.error("[DOMQL] Event handler error:", err);
56
56
  if (element.context?.strictMode) throw err;
57
57
  }
58
58
  };
@@ -80,13 +80,13 @@ const applyEventUpdate = (param, updatedObj, element, state, context, options) =
80
80
  if (result && typeof result.then === "function") {
81
81
  result.catch((err) => {
82
82
  element.error = err;
83
- console.error("[DomQL] Async event update error:", err);
83
+ console.error("[DOMQL] Async event update error:", err);
84
84
  });
85
85
  }
86
86
  return result;
87
87
  } catch (err) {
88
88
  element.error = err;
89
- console.error("[DomQL] Event update error:", err);
89
+ console.error("[DOMQL] Event update error:", err);
90
90
  if (element.context?.strictMode) throw err;
91
91
  }
92
92
  };
@@ -20,13 +20,13 @@ const applyEvent = (param, element, state, context, options) => {
20
20
  if (result && typeof result.then === "function") {
21
21
  result.catch((err) => {
22
22
  element.error = err;
23
- console.error("[DomQL] Async event error:", err);
23
+ console.error("[DOMQL] Async event error:", err);
24
24
  });
25
25
  }
26
26
  return result;
27
27
  } catch (err) {
28
28
  element.error = err;
29
- console.error("[DomQL] Event handler error:", err);
29
+ console.error("[DOMQL] Event handler error:", err);
30
30
  if (element.context?.strictMode) throw err;
31
31
  }
32
32
  };
@@ -54,13 +54,13 @@ const applyEventUpdate = (param, updatedObj, element, state, context, options) =
54
54
  if (result && typeof result.then === "function") {
55
55
  result.catch((err) => {
56
56
  element.error = err;
57
- console.error("[DomQL] Async event update error:", err);
57
+ console.error("[DOMQL] Async event update error:", err);
58
58
  });
59
59
  }
60
60
  return result;
61
61
  } catch (err) {
62
62
  element.error = err;
63
- console.error("[DomQL] Event update error:", err);
63
+ console.error("[DOMQL] Event update error:", err);
64
64
  if (element.context?.strictMode) throw err;
65
65
  }
66
66
  };
@@ -4021,13 +4021,13 @@ var DomqlUtils = (() => {
4021
4021
  if (result && typeof result.then === "function") {
4022
4022
  result.catch((err) => {
4023
4023
  element.error = err;
4024
- console.error("[DomQL] Async event error:", err);
4024
+ console.error("[DOMQL] Async event error:", err);
4025
4025
  });
4026
4026
  }
4027
4027
  return result;
4028
4028
  } catch (err) {
4029
4029
  element.error = err;
4030
- console.error("[DomQL] Event handler error:", err);
4030
+ console.error("[DOMQL] Event handler error:", err);
4031
4031
  if (element.context?.strictMode) throw err;
4032
4032
  }
4033
4033
  };
@@ -4055,13 +4055,13 @@ var DomqlUtils = (() => {
4055
4055
  if (result && typeof result.then === "function") {
4056
4056
  result.catch((err) => {
4057
4057
  element.error = err;
4058
- console.error("[DomQL] Async event update error:", err);
4058
+ console.error("[DOMQL] Async event update error:", err);
4059
4059
  });
4060
4060
  }
4061
4061
  return result;
4062
4062
  } catch (err) {
4063
4063
  element.error = err;
4064
- console.error("[DomQL] Event update error:", err);
4064
+ console.error("[DOMQL] Event update error:", err);
4065
4065
  if (element.context?.strictMode) throw err;
4066
4066
  }
4067
4067
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "3.6.6",
4
- "license": "MIT",
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",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
40
40
  "peerDependencies": {
41
- "@symbo.ls/fetch": "^3.6.6"
41
+ "@symbo.ls/fetch": "^3.6.8"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "@symbo.ls/fetch": {
package/triggerEvent.js CHANGED
@@ -24,13 +24,13 @@ export const applyEvent = (param, element, state, context, options) => {
24
24
  if (result && typeof result.then === 'function') {
25
25
  result.catch((err) => {
26
26
  element.error = err
27
- console.error('[DomQL] Async event error:', err)
27
+ console.error('[DOMQL] Async event error:', err)
28
28
  })
29
29
  }
30
30
  return result
31
31
  } catch (err) {
32
32
  element.error = err
33
- console.error('[DomQL] Event handler error:', err)
33
+ console.error('[DOMQL] Event handler error:', err)
34
34
  if (element.context?.strictMode) throw err
35
35
  }
36
36
  }
@@ -67,13 +67,13 @@ export const applyEventUpdate = (
67
67
  if (result && typeof result.then === 'function') {
68
68
  result.catch((err) => {
69
69
  element.error = err
70
- console.error('[DomQL] Async event update error:', err)
70
+ console.error('[DOMQL] Async event update error:', err)
71
71
  })
72
72
  }
73
73
  return result
74
74
  } catch (err) {
75
75
  element.error = err
76
- console.error('[DomQL] Event update error:', err)
76
+ console.error('[DOMQL] Event update error:', err)
77
77
  if (element.context?.strictMode) throw err
78
78
  }
79
79
  }