Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

endpoints-controller

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

endpoints-controller - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

17

lib/serialize.js
module.exports = function (req, res) {
var output = req.output;
var result;
if (!req) {

@@ -8,9 +9,17 @@ res.send(404);

if(Array.isArray(output)) {
res.json(output.map(function (item) {
return item.serialize();
}));
result = output.map(function (item) {
if (item.serialize) {
return item.serialize();
}
return item;
});
} else {
res.json(output.serialize());
if (output.serialize) {
result = output.serialize();
} else {
result = output;
}
}
res.json(result);
}
};
{
"name": "endpoints-controller",
"description": "controller layer for the endpoints framework.",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/endpoints/controller",

@@ -6,0 +6,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