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 2.5.0 to 2.5.1

2

nsm/get-server-fixture.ts

@@ -9,3 +9,3 @@ // @ts-nocheck

import { ExecutionContext } from "ava"
import type { ExecutionContext } from "ava"
import axios from "axios"

@@ -12,0 +12,0 @@ import getPort from "get-port"

@@ -14,3 +14,3 @@ // @ts-nocheck

import { getRouteRegex } from "./route-matcher/route-regex"
import { type NextApiHandler } from "./types/nextjs"
import type { NextApiHandler } from "./types/nextjs"

@@ -17,0 +17,0 @@ const debug = Debug("nsm")

// @ts-nocheck
// Modified version of: https://github.com/vercel/next.js/blob/e8408c70863b6bcd05437ff92a19194788716722/packages/next/server/api-utils.ts
import { type IncomingMessage, type ServerResponse } from "http"
import type { IncomingMessage, ServerResponse } from "http"
import { Stream } from "stream"
import getRawBody from "raw-body"
import { parse } from "content-type"
import { type NextApiRequest, type NextApiResponse } from "../types/nextjs"
import type { NextApiRequest, NextApiResponse } from "../types/nextjs"
import { serialize } from "cookie"

@@ -9,0 +9,0 @@

// @ts-nocheck
// https://github.com/vercel/next.js/blob/136b75439612bf6f2f0cd3fd0d8226fdaa8c0f95/packages/next/shared/lib/router/utils/querystring.ts
import { type ParsedUrlQuery } from "querystring"
import type { ParsedUrlQuery } from "querystring"

@@ -5,0 +5,0 @@ export function searchParamsToUrlQuery(

// @ts-nocheck
import { type ParsedUrlQuery } from "querystring"
import type { ParsedUrlQuery } from "querystring"
import pathMatch from "./path-match"

@@ -8,3 +8,3 @@ import { matchHas, prepareDestination } from "./prepare-destination"

import { parseRelativeUrl } from "./parse-relative-url"
import { Rewrite, RouteHas } from "../types/nextjs"
import type { Rewrite } from "../types/nextjs"

@@ -11,0 +11,0 @@ const customRouteMatcher = pathMatch(true)

// @ts-nocheck
import mime from "mime-types"
import { NextApiHandler } from "./types/nextjs"
import type { NextApiHandler } from "./types/nextjs"

@@ -5,0 +5,0 @@ const serveStatic = (ext: string, content: any) => ((req, res) => {

// @ts-nocheck
// https://github.com/vercel/next.js/blob/e2c5952ef2fa03d4fb6dc4cb7ff50d26c76e7ea8/packages/next/shared/lib/utils.ts
import { type ServerResponse, type IncomingMessage } from "http"
import type { ServerResponse, IncomingMessage } from "http"

@@ -5,0 +5,0 @@ /**

{
"name": "nextjs-server-modules",
"version": "2.5.0",
"version": "2.5.1",
"main": "bin.js",

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

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