@bbn/bbn 1.0.63 → 1.0.64

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 CHANGED
@@ -1369,7 +1369,7 @@
1369
1369
  if ('cp' in bbn && 'isComponent' in bbn['cp'] && (typeof bbn['cp'].isComponent === 'function')) {
1370
1370
  for (let a of args) {
1371
1371
  let res = bbn.cp.isComponent(a);
1372
- if (!res || (0, isDom_1.isDom)(res) || !res.$el) {
1372
+ if (!res || (0, isDom_1.isDom)(res) || !res.$el?.bbnCid) {
1373
1373
  return false;
1374
1374
  }
1375
1375
  }
@@ -6,7 +6,7 @@ const isCp = function (...args) {
6
6
  if ('cp' in bbn && 'isComponent' in bbn['cp'] && (typeof bbn['cp'].isComponent === 'function')) {
7
7
  for (let a of args) {
8
8
  let res = bbn.cp.isComponent(a);
9
- if (!res || isDom(res) || !res.$el) {
9
+ if (!res || isDom(res) || !res.$el?.bbnCid) {
10
10
  return false;
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",