Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nextjs-server-modules

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextjs-server-modules - npm Package Compare versions

Comparing version 1.5.14 to 1.5.15

15

nsm/index.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc