@quantos/micro-request
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -16,3 +16,3 @@ "use strict"; | ||
let _redisEnabled = false; | ||
if (process.env.REDIS_PORT && process.env.REDIS_HOST) { | ||
if (process.env.REDIS_URL) { | ||
console.log('[@quantos/micro-request][Init redis client] Creating client on ' + process.env.REDIS_URL); | ||
@@ -19,0 +19,0 @@ redisClient = (0, redis_1.createClient)({ url: process.env.REDIS_URL }); |
{ | ||
"name": "@quantos/micro-request", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Quantos http client with cache, retry and fallback mechanism", | ||
@@ -5,0 +5,0 @@ "author": "fabriziotognetto <info@quantos.it>", |
@@ -8,3 +8,3 @@ import { createClient, RedisClientType } from 'redis'; | ||
if (process.env.REDIS_PORT && process.env.REDIS_HOST) { | ||
if (process.env.REDIS_URL) { | ||
console.log('[@quantos/micro-request][Init redis client] Creating client on ' + process.env.REDIS_URL); | ||
@@ -11,0 +11,0 @@ redisClient = createClient({ url: process.env.REDIS_URL }); |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
4
36657