vimcord 1.0.25 → 1.0.27

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 CHANGED
@@ -2309,7 +2309,7 @@ async function retryExponentialBackoff(fn, maxRetries = 3, retryDelay = 1e3) {
2309
2309
  }
2310
2310
 
2311
2311
  // package.json
2312
- var version = "1.0.25";
2312
+ var version = "1.0.27";
2313
2313
 
2314
2314
  // src/client.ts
2315
2315
  var import_node_crypto3 = require("crypto");
@@ -2848,6 +2848,18 @@ var MongoSchemaBuilder = class _MongoSchemaBuilder {
2848
2848
  return await fn(model);
2849
2849
  }, maxRetries);
2850
2850
  }
2851
+ async startSession(options) {
2852
+ return await this.execute(async () => {
2853
+ if (!this.db) throw new Error("No database instance found");
2854
+ return await this.db.startSession(options);
2855
+ });
2856
+ }
2857
+ async useTransaction(fn) {
2858
+ return await this.execute(async () => {
2859
+ if (!this.db) throw new Error("No database instance found");
2860
+ return await this.db.useTransaction(fn);
2861
+ });
2862
+ }
2851
2863
  async createHexId(bytes, path2, maxRetries = 10) {
2852
2864
  return await this.execute(async (model) => {
2853
2865
  const createHex = () => (0, import_node_crypto4.randomBytes)(bytes).toString("hex");