@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.mjs CHANGED
@@ -2873,6 +2873,9 @@ function bindHandleOnRequest(instance) {
2873
2873
  return async function handleOnRequest(config, _init, params) {
2874
2874
  if (config.extensions) {
2875
2875
  for (const create2 of config.extensions) {
2876
+ if (typeof create2 !== "function") {
2877
+ return void 0;
2878
+ }
2876
2879
  const ext = await create2(instance);
2877
2880
  if (ext.onRequest) {
2878
2881
  const modified = await ext.onRequest(_init.request);