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

microgateway-config

Package Overview
Dependencies
Maintainers
5
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microgateway-config - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

21

lib/default-validator.js

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

if (typeof config.edgemicro.proxy.enabled !== 'undefined') {
assert(typeof config.edgemicro.proxy.enabled === 'boolean', 'config.edgemicro.proxy.tunnel is not a boolean');
assert(typeof config.edgemicro.proxy.enabled === 'boolean', 'config.edgemicro.proxy.tunnel should be a boolean');
if ( config.edgemicro.proxy.enabled === true ) {

@@ -50,3 +50,3 @@ var httpProxyEnvVariables = ['HTTP_PROXY', 'HTTPS_PROXY', 'http_proxy', 'https_proxy'];

if (typeof config.edgemicro.proxy.tunnel !== 'undefined') {
assert(typeof config.edgemicro.proxy.tunnel === 'boolean', 'config.edgemicro.proxy.tunnel is not a boolean');
assert(typeof config.edgemicro.proxy.tunnel === 'boolean', 'config.edgemicro.proxy.tunnel should be a boolean');
var httpProxyEnvVariables = ['HTTP_PROXY', 'HTTPS_PROXY', 'http_proxy', 'https_proxy'];

@@ -96,3 +96,3 @@ let proxy = config.edgemicro.proxy.url;

if (config.edge_config.hasOwnProperty('redisBasedConfigCache')) {
assert(typeof config.edge_config.redisBasedConfigCache === 'boolean', 'config.edge_config.redisBasedConfigCache is not a boolean');
assert(typeof config.edge_config.redisBasedConfigCache === 'boolean', 'config.edge_config.redisBasedConfigCache should be a boolean');
}

@@ -123,2 +123,5 @@ if (config.edge_config.hasOwnProperty('synchronizerMode')) {

//assert(typeof config.edgemicro.max_connections_hard === 'number', 'config.edgemicro.max_connections_hard is not a number');
if (config.edgemicro.logging.to_console){
assert(typeof config.edgemicro.logging.to_console === 'boolean', 'config.edgemicro.logging.to_console should be a boolean');
}
if (config.edgemicro.plugins) {

@@ -132,3 +135,3 @@ if(config.edgemicro.plugins.sequence){

if ( config.edgemicro.plugins.disableExcUrlsCache ) {
assert(typeof config.edgemicro.plugins.disableExcUrlsCache === 'boolean', 'config.edgemicro.plugins.disableExcUrlsCache is not an boolean');
assert(typeof config.edgemicro.plugins.disableExcUrlsCache === 'boolean', 'config.edgemicro.plugins.disableExcUrlsCache should be a boolean');
}

@@ -178,3 +181,3 @@ }

if (config.edgemicro.hasOwnProperty('enableAnalytics')) {
assert(typeof config.edgemicro.enableAnalytics === 'boolean', 'config.edgemicro.enableAnalytics is not a boolean');
assert(typeof config.edgemicro.enableAnalytics === 'boolean', 'config.edgemicro.enableAnalytics should be a boolean');
}

@@ -221,7 +224,7 @@ if(!config.edgemicro.hasOwnProperty('enableAnalytics') || config.edgemicro.enableAnalytics === true || options.metrics === true){

if ( key === 'failOpen') {
assert(typeof config.quotas[key] === 'boolean', 'config.quotas.' + key + ' is not an boolean');
assert(typeof config.quotas[key] === 'boolean', 'config.quotas.' + key + ' should be a boolean');
} else if ( key === 'useDebugMpId') {
assert(typeof config.quotas[key] === 'boolean', 'config.quotas.' + key + ' is not an boolean');
assert(typeof config.quotas[key] === 'boolean', 'config.quotas.' + key + ' should be a boolean');
} else if ( key === 'useRedis') {
assert(typeof config.quotas[key] === 'boolean', 'config.quotas.' + key + ' is not an boolean');
assert(typeof config.quotas[key] === 'boolean', 'config.quotas.' + key + ' should be a boolean');
} else if ( key === 'excludeUrls') {

@@ -263,3 +266,3 @@ assert(typeof config.quotas[key] === 'string', 'config.quotas.' + key + ' is not an string');

if (config.edgemicro.enable_GET_req_body) {
assert(typeof config.edgemicro.enable_GET_req_body === 'boolean', 'config.edgemicro.enable_GET_req_body is not a boolean');
assert(typeof config.edgemicro.enable_GET_req_body === 'boolean', 'config.edgemicro.enable_GET_req_body should be a boolean');
}

@@ -266,0 +269,0 @@

{
"name": "microgateway-config",
"version": "3.2.1",
"version": "3.2.2",
"description": "Apigee Microgateway Handler",

@@ -12,3 +12,3 @@ "main": "index.js",

"dependencies": {
"apigeetool": "^0.14.2",
"apigeetool": "^0.15.1",
"async": "^1.5.2",

@@ -21,5 +21,5 @@ "body-parser": "^1.15.0",

"lodash": "^4.17.19",
"redis": "^2.6.0",
"redis": "^3.1.2",
"request": "^2.87.0",
"resolve": "^1.8.1"
"resolve": "^1.20.0"
},

@@ -36,4 +36,4 @@ "scripts": {

"eslint-config-google": "^0.13.0",
"mocha": "^7.0.0",
"nyc": "^14.1.1",
"mocha": "^9.0.1",
"nyc": "^15.1.0",
"proxyquire": "^1.7.10",

@@ -40,0 +40,0 @@ "jshint-stylish": "^2.2.1"

Sorry, the diff of this file is too big to display

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