Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

domql

Package Overview
Dependencies
Maintainers
0
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domql - npm Package Compare versions

Comparing version 2.5.181 to 2.5.182

12

dist/cjs/index.js

@@ -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 @@ };

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc