Comparing version 1.4.1 to 1.4.2
@@ -6,3 +6,3 @@ { | ||
"author": "rackai", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"repository": "https://github.com/rackai/domql", | ||
@@ -9,0 +9,0 @@ "publishConfig": { |
@@ -40,15 +40,17 @@ 'use strict' | ||
// if KEY is PROTO | ||
if (options.components) { | ||
const { components } = options | ||
const { proto } = element | ||
if (isString(proto)) | ||
if (components[proto]) element.proto = components[proto] | ||
else console.warn(proto, 'is not in library', components, element) | ||
const k = element.key || key | ||
const keyIsProto = isString(k) && k.charAt(0) === k.charAt(0).toUpperCase() | ||
let component | ||
if (keyIsProto) component = key | ||
// // if KEY is PROTO | ||
// const k = element.key || key | ||
// const keyIsProto = isString(k) && k.charAt(0) === k.charAt(0).toUpperCase() | ||
// if (keyIsProto) component = key | ||
// let { match, ...rest } = element | ||
// if proto comes from library as string | ||
const fromLibrary = component || isString(element.proto) ? element.proto : element.component | ||
const isInLibrary = components[fromLibrary] | ||
if (isInLibrary) element = { proto: isInLibrary, props: element } | ||
// const fromLibrary = isString(match) ? components[match] : match | ||
// if (fromLibrary) element = { proto: fromLibrary, ...rest } | ||
} | ||
@@ -55,0 +57,0 @@ |
@@ -54,4 +54,3 @@ 'use strict' | ||
parseDeep: {}, | ||
on: {}, | ||
component: {} | ||
on: {} | ||
} |
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
53769
1638