@bbn/bbn 1.0.62 → 1.0.63
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 +2 -3
- package/dist/db.js +2 -3
- package/package.json +1 -1
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) {
|
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) {
|