@bbn/bbn 1.0.62 → 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
@@ -869,7 +869,6 @@
869
869
  const store = tx.objectStore(table);
870
870
  });
871
871
  };
872
- return this;
873
872
  };
874
873
  const db = {
875
874
  _structures: {},
@@ -902,12 +901,12 @@
902
901
  };
903
902
  conn.onsuccess = () => {
904
903
  db._connections[name] = conn.result;
905
- let obj = dbObject(name);
904
+ let obj = new dbObject(name);
906
905
  resolve(obj);
907
906
  };
908
907
  return;
909
908
  }
910
- resolve(dbObject(db._connections[name]));
909
+ resolve(new dbObject(db._connections[name]));
911
910
  });
912
911
  },
913
912
  add(database, name, structure) {
@@ -1370,7 +1369,7 @@
1370
1369
  if ('cp' in bbn && 'isComponent' in bbn['cp'] && (typeof bbn['cp'].isComponent === 'function')) {
1371
1370
  for (let a of args) {
1372
1371
  let res = bbn.cp.isComponent(a);
1373
- if (!res || (0, isDom_1.isDom)(res) || !res.$el) {
1372
+ if (!res || (0, isDom_1.isDom)(res) || !res.$el?.bbnCid) {
1374
1373
  return false;
1375
1374
  }
1376
1375
  }
package/dist/db.js CHANGED
@@ -127,7 +127,6 @@ const dbObject = function (dbName) {
127
127
  const store = tx.objectStore(table);
128
128
  });
129
129
  };
130
- return this;
131
130
  };
132
131
  const db = {
133
132
  _structures: {},
@@ -160,12 +159,12 @@ const db = {
160
159
  };
161
160
  conn.onsuccess = () => {
162
161
  db._connections[name] = conn.result;
163
- let obj = dbObject(name);
162
+ let obj = new dbObject(name);
164
163
  resolve(obj);
165
164
  };
166
165
  return;
167
166
  }
168
- resolve(dbObject(db._connections[name]));
167
+ resolve(new dbObject(db._connections[name]));
169
168
  });
170
169
  },
171
170
  add(database, name, structure) {
@@ -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.62",
3
+ "version": "1.0.64",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",