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

bridgets

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridgets - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

38

dist/Lib/Server/express.js

@@ -14,23 +14,23 @@ "use strict";

return async (req, res, next) => {
const route = serverRoutes[req.path];
if (!route)
return next();
if (!route.filesConfig)
req.body = await (0, bodyJSON_1.getJSONDataFromRequestStream)(req);
let validation = {};
if (route.validator)
validation = await route.validator.validate(req, {});
if (validation.error) {
onError?.({
error: validation.error,
path: req.path,
req,
headers: req.headers,
body: req.body,
query: req.query,
});
return res.status(validation.error.status || 500).json({ error: validation.error });
}
let result;
try {
const route = serverRoutes[req.path];
if (!route)
return next();
if (!route.filesConfig)
req.body = await (0, bodyJSON_1.getJSONDataFromRequestStream)(req);
if (route.validator)
validation = await route.validator.validate(req, {});
if (validation.error) {
onError?.({
error: validation.error,
path: req.path,
req,
headers: req.headers,
body: req.body,
query: req.query,
});
return res.status(validation.error.status || 500).json({ error: validation.error });
}
let result;
if (route.filesConfig) {

@@ -37,0 +37,0 @@ const form = (0, formidable_1.default)({ multiples: true });

{
"name": "bridgets",
"version": "1.0.14",
"version": "1.0.15",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/Lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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