New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nlpjs/express-api-server

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlpjs/express-api-server - npm Package Compare versions

Comparing version 4.19.8 to 4.21.0

4

package.json
{
"name": "@nlpjs/express-api-server",
"version": "4.19.8",
"version": "4.21.0",
"description": "Express API Server",

@@ -35,3 +35,3 @@ "author": {

},
"gitHead": "49e973312ce0d74e38c6a7bec8610a7e50b4ec65"
"gitHead": "e1938e389e4dc4e795d3223f8f01a50443118ea8"
}

@@ -27,2 +27,3 @@ /*

const path = require('path');
const { logger } = require('@nlpjs/core');

@@ -49,6 +50,12 @@ class ExpressApiApp {

if (this.settings.serveBot) {
this.app.use(express.static(path.join(__dirname, './public')));
const clientPath =
this.settings.clientPath || path.join(__dirname, './public');
logger.debug(`Serving bot client (path: ${clientPath}`);
this.app.use(express.static(clientPath));
}
for (let i = 0; i < this.routers.length; i += 1) {
this.app.use(this.settings.apiRoot, this.routers[i]);
const router = this.routers[i];
const routes = router.stack.map((layer) => layer.route.path);
logger.debug(`Loading custom router: ${JSON.stringify(routes, null, 2)}`);
this.app.use(this.settings.apiRoot, router);
}

@@ -55,0 +62,0 @@ return this.app;

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