@niledatabase/server 5.0.0-alpha.22 → 5.0.0-alpha.23

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 CHANGED
@@ -1141,7 +1141,7 @@ var baseLogger = (config, ...params) => ({
1141
1141
  },
1142
1142
  debug(message, meta) {
1143
1143
  if (config?.debug) {
1144
- console.debug(
1144
+ console.info(
1145
1145
  `${orange}[niledb]${reset}${purple}[DEBUG]${reset}${params.join(
1146
1146
  ""
1147
1147
  )}${reset} ${message}`,
@@ -3162,6 +3162,13 @@ var Server = class {
3162
3162
  if (ext.onConfigure) {
3163
3163
  ext.onConfigure();
3164
3164
  }
3165
+ if (ext?.replace?.handlers) {
3166
+ this.#config.logger("[EXTENSION]").debug(`${ext.id} replacing handlers`);
3167
+ this.#handlers = ext.replace.handlers({
3168
+ ...this.#config.handlers,
3169
+ withContext: handlersWithContext(this.#config)
3170
+ });
3171
+ }
3165
3172
  }
3166
3173
  }
3167
3174
  }