@bbn/bbn 1.0.399 → 1.0.401
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/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/db.js +3 -2
- package/package.json +1 -1
package/dist/db.js
CHANGED
|
@@ -318,8 +318,9 @@ var db = {
|
|
|
318
318
|
});
|
|
319
319
|
},
|
|
320
320
|
add: function (database, name, structure) {
|
|
321
|
-
var _a;
|
|
322
|
-
|
|
321
|
+
var _a, _b;
|
|
322
|
+
bbn.fn.log("ADDING DB", (_a = structure === null || structure === void 0 ? void 0 : structure.keys) === null || _a === void 0 ? void 0 : _a.PRIMARY, structure === null || structure === void 0 ? void 0 : structure.fields);
|
|
323
|
+
if (((_b = structure === null || structure === void 0 ? void 0 : structure.keys) === null || _b === void 0 ? void 0 : _b.PRIMARY) && (structure === null || structure === void 0 ? void 0 : structure.fields)) {
|
|
323
324
|
if (!db._structures[database]) {
|
|
324
325
|
db._structures[database] = {};
|
|
325
326
|
}
|