@growthbook/proxy
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -75,3 +75,3 @@ "use strict"; | ||
const fetchOptions = { headers }; | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED !== "0") { | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED === "0") { | ||
fetchOptions.agent = new https.Agent({ rejectUnauthorized: false }); | ||
@@ -78,0 +78,0 @@ } |
@@ -105,3 +105,3 @@ "use strict"; | ||
const fetchOptions = { headers }; | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED !== "0") { | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED === "0") { | ||
fetchOptions.agent = new https_1.default.Agent({ rejectUnauthorized: false }); | ||
@@ -108,0 +108,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"description": "GrowthBook proxy server for caching, realtime updates, telemetry, etc", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "dist/app.js", | ||
@@ -10,0 +10,0 @@ "license": "MIT", |
@@ -52,3 +52,3 @@ import * as https from "https"; | ||
const fetchOptions: any = { headers }; | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED !== "0") { | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED === "0") { | ||
fetchOptions.agent = new https.Agent({ rejectUnauthorized: false }); | ||
@@ -55,0 +55,0 @@ } |
@@ -117,3 +117,3 @@ import https from "https"; | ||
const fetchOptions: any = { headers }; | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED !== "0") { | ||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED === "0") { | ||
fetchOptions.agent = new https.Agent({ rejectUnauthorized: false }); | ||
@@ -120,0 +120,0 @@ } |
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