Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

a127-magic

Package Overview
Dependencies
0
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.4.0

10

lib/middleware.js

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

var loader = require('./loader');
var resource = require('./resource');

@@ -57,2 +58,3 @@ module.exports = middleware;

volosSwagger(swaggerObject, magicConfig.volos),
addResourceToRequestMW(),
swaggerTools.swaggerRouter(routerConfig)

@@ -62,2 +64,10 @@ ]);

function addResourceToRequestMW() {
var a127Resource = { resource: resource };
return function(req, res, next) {
req.a127 = a127Resource;
next();
};
}
function chain(middlewares) {

@@ -64,0 +74,0 @@

2

package.json
{
"name": "a127-magic",
"version": "0.3.0",
"version": "0.4.0",
"description": "Apigee 127 Swagger Loader and Middleware",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc