@domql/event 2.5.178 → 2.5.182
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/dist/cjs/on.js +2 -2
- package/on.js +2 -2
- package/package.json +3 -3
package/dist/cjs/on.js
CHANGED
|
@@ -36,11 +36,11 @@ const getOnOrPropsEvent = (param, element) => {
|
|
|
36
36
|
const applyEvent = (param, element, state, context, options) => {
|
|
37
37
|
return param.call(element, element, state || element.state, context || element.context, options);
|
|
38
38
|
};
|
|
39
|
-
const triggerEventOn = (param, element, options) => {
|
|
39
|
+
const triggerEventOn = async (param, element, options) => {
|
|
40
40
|
const appliedFunction = getOnOrPropsEvent(param, element);
|
|
41
41
|
if (appliedFunction) {
|
|
42
42
|
const { state, context } = element;
|
|
43
|
-
return applyEvent(appliedFunction, element, state, context, options);
|
|
43
|
+
return await applyEvent(appliedFunction, element, state, context, options);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
const applyEventUpdate = (param, updatedObj, element, state, context, options) => {
|
package/on.js
CHANGED
|
@@ -12,11 +12,11 @@ export const applyEvent = (param, element, state, context, options) => {
|
|
|
12
12
|
return param.call(element, element, state || element.state, context || element.context, options)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const triggerEventOn = (param, element, options) => {
|
|
15
|
+
export const triggerEventOn = async (param, element, options) => {
|
|
16
16
|
const appliedFunction = getOnOrPropsEvent(param, element)
|
|
17
17
|
if (appliedFunction) {
|
|
18
18
|
const { state, context } = element
|
|
19
|
-
return applyEvent(appliedFunction, element, state, context, options)
|
|
19
|
+
return await applyEvent(appliedFunction, element, state, context, options)
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/event",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.182",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@domql/report": "^2.5.162",
|
|
31
|
-
"@domql/utils": "^2.5.
|
|
31
|
+
"@domql/utils": "^2.5.179"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "0071c581cbefc87854f08d3b658580055911ed24"
|
|
34
34
|
}
|