vimcord 1.0.46 → 1.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.cjs CHANGED
@@ -1787,7 +1787,7 @@ var VimcordErrorHandler = class {
1787
1787
  var import_chalk2 = __toESM(require("chalk"));
1788
1788
 
1789
1789
  // package.json
1790
- var version = "1.0.45";
1790
+ var version = "1.0.47";
1791
1791
 
1792
1792
  // src/client/vimcord.logger.ts
1793
1793
  var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({
@@ -3104,10 +3104,10 @@ var MongoSchemaBuilder = class _MongoSchemaBuilder {
3104
3104
  this.globalPlugins.push(plugin);
3105
3105
  }
3106
3106
  constructor(collection, definition, options = {}) {
3107
- const { instanceId = 0 } = options;
3107
+ const { instanceId = 0, ...schemaOptions } = options;
3108
3108
  this.instanceId = instanceId;
3109
3109
  this.collection = collection;
3110
- this.schema = new import_mongoose2.Schema(definition, { versionKey: false });
3110
+ this.schema = new import_mongoose2.Schema(definition, { versionKey: false, ...schemaOptions });
3111
3111
  this.logger = new Logger({
3112
3112
  prefixEmoji: "\u{1F96D}",
3113
3113
  prefix: `MongoSchema (i${instanceId}) [${collection}]`,