Socket
Socket
Sign inDemoInstall

@domql/element

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.62 to 2.5.63

5

create.js

@@ -155,3 +155,3 @@ 'use strict'

if (options.syntaxv3 || element.props?.syntaxv3 || parent?.props?.syntaxv3) {
if (options.syntaxv3 || (element.props && element.props.syntaxv3) || (parent && parent.props && parent.props.syntaxv3) /* kalduna guard */) {
element.props.syntaxv3 = true

@@ -238,2 +238,5 @@ return createValidDomqlObjectFromSugar(element, parent, key, options)

triggerEventOn('render', element, options)
// run `on.done`
triggerEventOn('done', element, options)
}

@@ -240,0 +243,0 @@

4

dist/cjs/create.js

@@ -118,5 +118,4 @@ "use strict";

const redefineElement = (element, parent, key, options) => {
var _a, _b;
const elementWrapper = createBasedOnType(element, parent, key, options);
if (options.syntaxv3 || ((_a = element.props) == null ? void 0 : _a.syntaxv3) || ((_b = parent == null ? void 0 : parent.props) == null ? void 0 : _b.syntaxv3)) {
if (options.syntaxv3 || element.props && element.props.syntaxv3 || parent && parent.props && parent.props.syntaxv3) {
element.props.syntaxv3 = true;

@@ -184,2 +183,3 @@ return (0, import_component.createValidDomqlObjectFromSugar)(element, parent, key, options);

(0, import_event.triggerEventOn)("render", element, options);
(0, import_event.triggerEventOn)("done", element, options);
};

@@ -186,0 +186,0 @@ const checkIfPrimitive = (element) => (0, import_utils.is)(element)("string", "number");

@@ -96,4 +96,4 @@ "use strict";

const extendizeByKey = (element, parent, key) => {
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition } = element;
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr;
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition, data } = element;
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr || data;
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? key.split("_")[0] : key.includes(".") ? key.split(".")[0] : [key];

@@ -100,0 +100,0 @@ const isExtendKeyComponent = context && context.components[extendFromKey];

{
"name": "@domql/element",
"version": "2.5.62",
"version": "2.5.63",
"license": "MIT",

@@ -34,3 +34,3 @@ "type": "module",

},
"gitHead": "005657169525f7aaa256f4e62d6a4688d6e2046a",
"gitHead": "318bb5d6c6b3989cc97b2a2f12c0169599786ffa",
"devDependencies": {

@@ -37,0 +37,0 @@ "@babel/core": "^7.12.0"

@@ -69,4 +69,4 @@ 'use strict'

export const extendizeByKey = (element, parent, key) => {
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition } = element
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition, data } = element
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr || data

@@ -73,0 +73,0 @@ const extendFromKey = key.includes('+')

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc