@interncom/diplomatic 0.0.46 → 0.0.47
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/index.mjs +11 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11718,7 +11718,7 @@ __export(entityDB_exports, {
|
|
|
11718
11718
|
});
|
|
11719
11719
|
var entityTableName = "entities";
|
|
11720
11720
|
var typeIndexName = "entity_type_created_at";
|
|
11721
|
-
var db2 = await openDB("db",
|
|
11721
|
+
var db2 = await openDB("db", 7, {
|
|
11722
11722
|
upgrade(db3, prevVersion, currVersion, tx) {
|
|
11723
11723
|
if (!db3.objectStoreNames.contains(entityTableName)) {
|
|
11724
11724
|
const store2 = db3.createObjectStore(entityTableName, {
|
|
@@ -11727,9 +11727,16 @@ var db2 = await openDB("db", 6, {
|
|
|
11727
11727
|
});
|
|
11728
11728
|
}
|
|
11729
11729
|
const store = tx.objectStore(entityTableName);
|
|
11730
|
-
store.
|
|
11731
|
-
|
|
11732
|
-
|
|
11730
|
+
if (!store.indexNames.contains("entity_type_created_at")) {
|
|
11731
|
+
store.createIndex("entity_type_created_at", ["type", "createdAt"], {
|
|
11732
|
+
unique: false
|
|
11733
|
+
});
|
|
11734
|
+
}
|
|
11735
|
+
if (!store.indexNames.contains("entity_type_group_id")) {
|
|
11736
|
+
store.createIndex("entity_type_group_id", ["type", "gid"], {
|
|
11737
|
+
unique: false
|
|
11738
|
+
});
|
|
11739
|
+
}
|
|
11733
11740
|
}
|
|
11734
11741
|
});
|
|
11735
11742
|
var applier = async (op) => {
|