nextjs-server-modules
Advanced tools
Comparing version 1.7.0 to 2.0.0
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
15
59472
1727
- Removedmicro@^9.3.4
- Removedmicro-body@^0.1.2
- Removedmicro-query@^0.3.0
- Removedarg@4.1.0(transitive)
- Removedbytes@3.1.0(transitive)
- Removedcontent-type@1.0.4(transitive)
- Removeddepd@1.1.2(transitive)
- Removedhttp-errors@1.7.3(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedmedia-typer@0.3.0(transitive)
- Removedmicro@9.4.1(transitive)
- Removedmicro-body@0.1.2(transitive)
- Removedmicro-query@0.3.0(transitive)
- Removedqs@6.5.2(transitive)
- Removedraw-body@2.4.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetprototypeof@1.1.1(transitive)
- Removedstatuses@1.5.0(transitive)
- Removedtoidentifier@1.0.0(transitive)
- Removedunpipe@1.0.0(transitive)
- Removedurlencoded-body-parser@2.0.1(transitive)