@bbn/bbn 1.0.75 → 1.0.76
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.
- package/dist/bundle.js +7 -7
- package/dist/fn/type/isCp.js +7 -7
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1371,15 +1371,15 @@
|
|
|
1371
1371
|
if (!args.length) {
|
|
1372
1372
|
return false;
|
|
1373
1373
|
}
|
|
1374
|
-
if ('cp' in bbn
|
|
1375
|
-
for (let a of args) {
|
|
1376
|
-
let res = bbn.cp.isComponent(a);
|
|
1377
|
-
if (!res || (0, isDom_1.isDom)(a) || !((_a = a.$el) === null || _a === void 0 ? void 0 : _a.bbnCid)) {
|
|
1378
|
-
return false;
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1374
|
+
if (!('cp' in bbn) || !('isComponent' in bbn['cp']) || !(typeof bbn['cp'].isComponent === 'function')) {
|
|
1381
1375
|
return false;
|
|
1382
1376
|
}
|
|
1377
|
+
for (let a of args) {
|
|
1378
|
+
let res = bbn.cp.isComponent(a);
|
|
1379
|
+
if (!res || (0, isDom_1.isDom)(a) || !((_a = a.$el) === null || _a === void 0 ? void 0 : _a.bbnCid)) {
|
|
1380
|
+
return false;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
1383
|
return true;
|
|
1384
1384
|
};
|
|
1385
1385
|
exports.isCp = isCp;
|
package/dist/fn/type/isCp.js
CHANGED
|
@@ -4,15 +4,15 @@ const isCp = function (...args) {
|
|
|
4
4
|
if (!args.length) {
|
|
5
5
|
return false;
|
|
6
6
|
}
|
|
7
|
-
if ('cp' in bbn
|
|
8
|
-
for (let a of args) {
|
|
9
|
-
let res = bbn.cp.isComponent(a);
|
|
10
|
-
if (!res || isDom(a) || !((_a = a.$el) === null || _a === void 0 ? void 0 : _a.bbnCid)) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
7
|
+
if (!('cp' in bbn) || !('isComponent' in bbn['cp']) || !(typeof bbn['cp'].isComponent === 'function')) {
|
|
14
8
|
return false;
|
|
15
9
|
}
|
|
10
|
+
for (let a of args) {
|
|
11
|
+
let res = bbn.cp.isComponent(a);
|
|
12
|
+
if (!res || isDom(a) || !((_a = a.$el) === null || _a === void 0 ? void 0 : _a.bbnCid)) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
16
|
return true;
|
|
17
17
|
};
|
|
18
18
|
export { isCp };
|