UNPKG

@rescale/nemo

Version:

A middleware composition library for Next.js applications that allows you to organize and chain middleware functions based on URL patterns.

2 lines (1 loc) 391 B
function s(t,e){if(t===e)return!0;if(!t||!e||t.status!==e.status||t.statusText!==e.statusText)return!1;let r=t.headers.get("Location"),a=e.headers.get("Location");if((r!==null||a!==null)&&r!==a)return!1;let u=Array.from(t.headers.entries()),l=Array.from(e.headers.entries());if(u.length!==l.length)return!1;let n=new Map(u);for(let[f,i]of l)if(n.get(f)!==i)return!1;return!0}export{s as a};