@vercel/routing-utils
Advanced tools
Comparing version 1.8.3-canary.3 to 1.8.3-canary.4
@@ -85,3 +85,3 @@ "use strict"; | ||
const { src, segments } = sourceToRegex(h.source); | ||
const hasSegments = segments.length > 0; | ||
const namedSegments = segments.filter(name => name !== UN_NAMED_SEGMENT); | ||
const indexes = {}; | ||
@@ -92,3 +92,3 @@ segments.forEach((name, index) => { | ||
h.headers.forEach(({ key, value }) => { | ||
if (hasSegments) { | ||
if (namedSegments.length > 0) { | ||
if (key.includes(':')) { | ||
@@ -95,0 +95,0 @@ key = safelyCompile(key, indexes); |
{ | ||
"name": "@vercel/routing-utils", | ||
"version": "1.8.3-canary.3", | ||
"version": "1.8.3-canary.4", | ||
"description": "Vercel routing utilities", | ||
@@ -33,3 +33,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "45d05a603b0d883461e5ed6aa5d1bf18d4a3cc55" | ||
"gitHead": "9d73091d8cd69787de8c8add84668b28c466029a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45642