Socket
Socket
Sign inDemoInstall

a127-magic

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a127-magic - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

14

lib/config.js

@@ -24,3 +24,3 @@ 'use strict';

'a127.magic': {
swaggerFile: path.resolve(APP_ROOT, 'api/swagger/swagger.yaml'),
swaggerFile: 'api/swagger/swagger.yaml',
controllers: {

@@ -56,5 +56,17 @@ useStubs: false,

config = _.extend(BASE_DEFAULTS, defaultConfig, currentConfig, secrets);
resolveRelativeProjectPaths(config);
return config;
}
function resolveRelativeProjectPaths(config) {
var magic = config['a127.magic'];
magic.swaggerFile = path.resolve(APP_ROOT, magic.swaggerFile);
if (_.isString(magic.controllers.controllers)) {
magic.controllers.controllers = path.resolve(APP_ROOT, magic.controllers.controllers);
}
magic.volos.helpers = path.resolve(APP_ROOT, magic.volos.helpers);
}
// todo: actually use vault instead of file

@@ -61,0 +73,0 @@ function readSecretsFromVault() {

2

package.json
{
"name": "a127-magic",
"version": "0.2.0",
"version": "0.2.1",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc