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

hydra-express

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydra-express - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

16

index.js

@@ -385,5 +385,17 @@ /**

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
if (this.config.cors) {
app.use(cors(Object.assign({}, this.config.cors)));
} else {
app.use(cors());
}
if (this.config.bodyParser) {
let bodyParserConfig = Object.assign({json: {}, urlencoded: {extended: false}}, this.config.bodyParser);
app.use(bodyParser.json(bodyParserConfig.json));
app.use(bodyParser.urlencoded(bodyParserConfig.urlencoded));
} else {
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
}
this.registerMiddlewareCallback && this.registerMiddlewareCallback();

@@ -390,0 +402,0 @@

2

package.json
{
"name": "hydra-express",
"version": "1.6.2",
"version": "1.6.3",
"description": "A module which wraps Hydra and ExpressJS to provide an out of the box microservice which can support API routes and handlers.",

@@ -5,0 +5,0 @@ "author": {

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