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.7.0 to 2.0.0

7

nsm/index.ts
import routes from "./generated_routes"
import micro from "micro"
import { Server } from "http"
import { apiResolver } from "./nextjs-middleware/api-utils"
import { IncomingMessage } from "http"
import getRouteMatcher from "./route-matcher"

@@ -64,3 +63,3 @@ import querystring from "querystring"

const routeMatcher = getRouteMatcher(routes)
const server = micro(async (req: IncomingMessage, res) => {
const server = new Server(async (req, res) => {
const query = querystring.parse(req.url!.split("?").slice(1).join("?"))

@@ -111,3 +110,3 @@ debug(`got request for "${req.url}"`)

})
server.listen({ port })
server.listen(port)
return server

@@ -114,0 +113,0 @@ }

{
"name": "nextjs-server-modules",
"version": "1.7.0",
"version": "2.0.0",
"main": "bin.js",

@@ -25,6 +25,6 @@ "repository": "git@github.com:hello-seam/nextjs-server-modules.git",

"@types/debug": "4.1.7",
"@types/micro": "7.3.7",
"@types/mime-types": "2.1.1",
"@types/node": "^17.0.24",
"@types/react": "^18.0.5",
"@types/node": "18.7.18",
"@types/raw-body": "2.3.0",
"@types/react": "18.0.20",
"ava": "^3.15.0",

@@ -50,5 +50,2 @@ "axios": "^0.24.0",

"glob-promise": "^4.2.2",
"micro": "^9.3.4",
"micro-body": "^0.1.2",
"micro-query": "^0.3.0",
"mime-types": "^2.1.34",

@@ -55,0 +52,0 @@ "nextjs-middleware-wrappers": "^1.1.2",

Sorry, the diff of this file is not supported yet

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