Comparing version 2.5.181 to 2.5.182
@@ -25,17 +25,17 @@ "use strict"; | ||
var import_element = require("@domql/element"); | ||
const create = (element, parent, key, options) => { | ||
const create = async (element, parent, key, options) => { | ||
var _a, _b, _c, _d, _e; | ||
const domqlElement = (import_element.create.default || import_element.create)(element, parent, key, options); | ||
const domqlElement = await (import_element.create.default || import_element.create)(element, parent, key, options); | ||
const complete = (_a = domqlElement.on) == null ? void 0 : _a.complete; | ||
if (complete) | ||
domqlElement.on.complete(element, element.state, element.context, options); | ||
await domqlElement.on.complete(element, element.state, element.context, options); | ||
const onComplete = (_b = domqlElement.props) == null ? void 0 : _b.onComplete; | ||
if (onComplete) | ||
(_c = domqlElement.props) == null ? void 0 : _c.onComplete(element, element.state, element.context, options); | ||
await ((_c = domqlElement.props) == null ? void 0 : _c.onComplete(element, element.state, element.context, options)); | ||
const initInspect = (_d = domqlElement.on) == null ? void 0 : _d.initInspect; | ||
if (initInspect) | ||
domqlElement.on.initInspect(element, element.state, element.context, options); | ||
await domqlElement.on.initInspect(element, element.state, element.context, options); | ||
const initSync = (_e = domqlElement.on) == null ? void 0 : _e.initSync; | ||
if (initSync) | ||
domqlElement.on.initSync(element, element.state, element.context, options); | ||
await domqlElement.on.initSync(element, element.state, element.context, options); | ||
return domqlElement; | ||
@@ -42,0 +42,0 @@ }; |
12
index.js
@@ -5,15 +5,15 @@ 'use strict' | ||
const create = (element, parent, key, options) => { | ||
const domqlElement = (createElement.default || createElement)(element, parent, key, options) | ||
const create = async (element, parent, key, options) => { | ||
const domqlElement = await (createElement.default || createElement)(element, parent, key, options) | ||
const complete = domqlElement.on?.complete | ||
if (complete) domqlElement.on.complete(element, element.state, element.context, options) | ||
if (complete) await domqlElement.on.complete(element, element.state, element.context, options) | ||
const onComplete = domqlElement.props?.onComplete | ||
if (onComplete) domqlElement.props?.onComplete(element, element.state, element.context, options) | ||
if (onComplete) await domqlElement.props?.onComplete(element, element.state, element.context, options) | ||
const initInspect = domqlElement.on?.initInspect | ||
if (initInspect) domqlElement.on.initInspect(element, element.state, element.context, options) | ||
if (initInspect) await domqlElement.on.initInspect(element, element.state, element.context, options) | ||
const initSync = domqlElement.on?.initSync | ||
if (initSync) domqlElement.on.initSync(element, element.state, element.context, options) | ||
if (initSync) await domqlElement.on.initSync(element, element.state, element.context, options) | ||
@@ -20,0 +20,0 @@ return domqlElement |
{ | ||
"name": "domql", | ||
"version": "2.5.181", | ||
"version": "2.5.182", | ||
"license": "MIT", | ||
@@ -28,9 +28,9 @@ "type": "module", | ||
"dependencies": { | ||
"@domql/element": "^2.5.181", | ||
"@domql/event": "^2.5.179", | ||
"@domql/render": "^2.5.179", | ||
"@domql/state": "^2.5.181", | ||
"@domql/element": "^2.5.182", | ||
"@domql/event": "^2.5.182", | ||
"@domql/render": "^2.5.182", | ||
"@domql/state": "^2.5.182", | ||
"@domql/utils": "^2.5.179" | ||
}, | ||
"gitHead": "4e5c3841725d9b2ffaeacc0e32bbff5c913b80b4" | ||
"gitHead": "0071c581cbefc87854f08d3b658580055911ed24" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4985
Updated@domql/element@^2.5.182
Updated@domql/event@^2.5.182
Updated@domql/render@^2.5.182
Updated@domql/state@^2.5.182