@niledatabase/server 5.0.0-alpha.4 → 5.0.0-alpha.5

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.js CHANGED
@@ -2879,6 +2879,9 @@ function bindHandleOnRequest(instance) {
2879
2879
  return async function handleOnRequest(config, _init, params) {
2880
2880
  if (config.extensions) {
2881
2881
  for (const create2 of config.extensions) {
2882
+ if (typeof create2 !== "function") {
2883
+ return void 0;
2884
+ }
2882
2885
  const ext = await create2(instance);
2883
2886
  if (ext.onRequest) {
2884
2887
  const modified = await ext.onRequest(_init.request);