New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.6.0 to 1.6.1

5

bin.js
#!/usr/bin/env node
require("esbuild-runner/register")
require("./lib/cli.js").default()
require("./lib/cli.js").default().catch(error => {
console.error(error)
process.exit(1)
})

4

nsm/scripts/generate-routes.js

@@ -13,6 +13,6 @@ const glob = require("glob-promise")

const staticFiles = (await glob("**/*", { cwd: staticDir }))
const staticFiles = (await glob("**/*", { cwd: staticDir, nodir: true }))
.map((fp) => `static/${fp}`)
.concat(
(await glob("**/*", { cwd: pagesDir }))
(await glob("**/*", { cwd: pagesDir, nodir: true }))
.filter((fp) => !fp.startsWith("api"))

@@ -19,0 +19,0 @@ .filter((fp) => !fp.endsWith(".nft.json"))

import mime from "mime-types"
export default (ext, content) => (req, res) => {
const contentType = mime.contentType(ext)
const contentType = mime.lookup(ext)
if (contentType) {

@@ -6,0 +6,0 @@ res.setHeader("Content-Type", contentType)

{
"name": "nextjs-server-modules",
"version": "1.6.0",
"version": "1.6.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