microgateway-config
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
346027
7461
+ Addedapigeetool@0.15.2(transitive)
+ Addeddenque@1.5.1(transitive)
+ Addedimmediate@3.0.6(transitive)
+ Addedjszip@3.10.1(transitive)
+ Addedlie@3.3.0(transitive)
+ Addedpako@1.0.11(transitive)
+ Addedredis@3.1.2(transitive)
+ Addedredis-errors@1.2.0(transitive)
+ Addedredis-parser@3.0.0(transitive)
- Removedapigeetool@0.14.2(transitive)
- Removeddouble-ended-queue@2.1.0-0(transitive)
- Removedjszip@2.5.0(transitive)
- Removednode-zip@1.1.1(transitive)
- Removedpako@0.2.9(transitive)
- Removedredis@2.8.0(transitive)
- Removedredis-parser@2.6.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
Updatedapigeetool@^0.15.1
Updatedredis@^3.1.2
Updatedresolve@^1.20.0