@ztimson/utils 0.26.21 → 0.26.22
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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1114,9 +1114,9 @@ ${opts.message || this.desc}`;
|
|
|
1114
1114
|
if (!this.includes(table.name)) {
|
|
1115
1115
|
const newDb = new Database(this.database, [...this.tables, table], (this.version ?? 0) + 1);
|
|
1116
1116
|
conn.close();
|
|
1117
|
-
|
|
1118
|
-
Object.assign(this, newDb);
|
|
1117
|
+
this.connection = newDb.connection;
|
|
1119
1118
|
await this.connection;
|
|
1119
|
+
Object.assign(this, newDb);
|
|
1120
1120
|
}
|
|
1121
1121
|
return this.table(table.name);
|
|
1122
1122
|
});
|
|
@@ -1128,9 +1128,9 @@ ${opts.message || this.desc}`;
|
|
|
1128
1128
|
const conn = await this.connection;
|
|
1129
1129
|
const newDb = new Database(this.database, this.tables.filter((t) => t.name != table.name), (this.version ?? 0) + 1);
|
|
1130
1130
|
conn.close();
|
|
1131
|
-
|
|
1132
|
-
Object.assign(this, newDb);
|
|
1131
|
+
this.connection = newDb.connection;
|
|
1133
1132
|
await this.connection;
|
|
1133
|
+
Object.assign(this, newDb);
|
|
1134
1134
|
});
|
|
1135
1135
|
}
|
|
1136
1136
|
includes(name) {
|