@domql/element 2.5.34 → 2.5.37
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.
|
@@ -125,8 +125,10 @@ const cloneAndMergeArrayExtend = (stack) => {
|
|
|
125
125
|
const fallbackStringExtend = (extend, context, options = {}) => {
|
|
126
126
|
const COMPONENTS = context && context.components || options.components;
|
|
127
127
|
if ((0, import_utils.isString)(extend)) {
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
const componentExists = COMPONENTS[extend] || COMPONENTS["smbls." + extend];
|
|
129
|
+
console.log(extend, componentExists);
|
|
130
|
+
if (COMPONENTS && componentExists) {
|
|
131
|
+
return componentExists;
|
|
130
132
|
} else {
|
|
131
133
|
if (ENV !== "test" || ENV !== "development") {
|
|
132
134
|
console.warn("Extend is string but component was not found:", extend);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.37",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@domql/state": "latest",
|
|
32
32
|
"@domql/utils": "latest"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "1cba51181175cc713dc6d55a4cd2b10e456e1315",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|
package/utils/extendUtils.js
CHANGED
|
@@ -93,8 +93,10 @@ export const cloneAndMergeArrayExtend = stack => {
|
|
|
93
93
|
export const fallbackStringExtend = (extend, context, options = {}) => {
|
|
94
94
|
const COMPONENTS = (context && context.components) || options.components
|
|
95
95
|
if (isString(extend)) {
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
const componentExists = COMPONENTS[extend] || COMPONENTS['smbls.' + extend]
|
|
97
|
+
console.log(extend, componentExists)
|
|
98
|
+
if (COMPONENTS && componentExists) {
|
|
99
|
+
return componentExists
|
|
98
100
|
} else {
|
|
99
101
|
if (ENV !== 'test' || ENV !== 'development') {
|
|
100
102
|
console.warn('Extend is string but component was not found:', extend)
|