nextjs-server-modules
Advanced tools
Comparing version 1.5.14 to 1.5.15
@@ -9,3 +9,3 @@ import routes from "./generated_routes" | ||
import Debug from "debug" | ||
import wrappers from "@seamapi/wrappers" | ||
import wrappers from "nextjs-middleware-wrappers" | ||
import resolveRewrites from "./nextjs-middleware/resolve-rewrites" | ||
@@ -25,3 +25,3 @@ import nextConfig from "./next.config" | ||
export function normalizePathSep(path: string): string { | ||
return path.replace(/\\/g, '/') | ||
return path.replace(/\\/g, "/") | ||
} | ||
@@ -31,6 +31,6 @@ | ||
page = normalizePathSep(page) | ||
if (page.startsWith('/index/') && !isDynamicRoute(page)) { | ||
if (page.startsWith("/index/") && !isDynamicRoute(page)) { | ||
page = page.slice(6) | ||
} else if (page === '/index') { | ||
page = '/' | ||
} else if (page === "/index") { | ||
page = "/" | ||
} | ||
@@ -43,3 +43,3 @@ return page | ||
if (cleanPathname === '/404' || cleanPathname === '/_error') { | ||
if (cleanPathname === "/404" || cleanPathname === "/_error") { | ||
return pathname | ||
@@ -82,3 +82,4 @@ } | ||
const { serverFunc, match } = routeMatcher(resolveResult.parsedAs.pathname) || {} | ||
const { serverFunc, match } = | ||
routeMatcher(resolveResult.parsedAs.pathname) || {} | ||
@@ -85,0 +86,0 @@ if (typeof serverFunc === "string") { |
{ | ||
"name": "nextjs-server-modules", | ||
"version": "1.5.14", | ||
"version": "1.5.15", | ||
"main": "bin.js", | ||
@@ -36,3 +36,2 @@ "repository": "git@github.com:hello-seam/nextjs-server-modules.git", | ||
"dependencies": { | ||
"@seamapi/wrappers": "^1.1.0", | ||
"cookie": "^0.4.1", | ||
@@ -48,2 +47,3 @@ "debug": "^4.3.3", | ||
"mime-types": "^2.1.34", | ||
"nextjs-middleware-wrappers": "^1.1.2", | ||
"path-to-regexp": "^6.2.0", | ||
@@ -50,0 +50,0 @@ "prettier": "^2.5.1", |
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
58320
1700
+ Addednextjs-middleware-wrappers@1.3.0(transitive)
- Removed@seamapi/wrappers@^1.1.0
- Removed@seamapi/wrappers@1.1.1(transitive)