@devcycle/nodejs-server-sdk
Advanced tools
Comparing version 1.31.0 to 1.31.1
@@ -188,2 +188,3 @@ "use strict"; | ||
`, last-modified: ${this.configLastModified}`); | ||
this.handleSSEConfig(); | ||
return; | ||
@@ -238,5 +239,7 @@ } | ||
if (this.enableRealtimeUpdates) { | ||
const configBody = JSON.parse(projectConfig); | ||
const originalConfigSSE = this.configSSE; | ||
this.configSSE = configBody.sse; | ||
if (projectConfig) { | ||
const configBody = JSON.parse(projectConfig); | ||
this.configSSE = configBody.sse; | ||
} | ||
// Reconnect SSE if not first config fetch, and the SSE config has changed | ||
@@ -243,0 +246,0 @@ if (this.hasConfig && |
@@ -188,2 +188,3 @@ "use strict"; | ||
`, last-modified: ${this.configLastModified}`); | ||
this.handleSSEConfig(); | ||
return; | ||
@@ -238,5 +239,7 @@ } | ||
if (this.enableRealtimeUpdates) { | ||
const configBody = JSON.parse(projectConfig); | ||
const originalConfigSSE = this.configSSE; | ||
this.configSSE = configBody.sse; | ||
if (projectConfig) { | ||
const configBody = JSON.parse(projectConfig); | ||
this.configSSE = configBody.sse; | ||
} | ||
// Reconnect SSE if not first config fetch, and the SSE config has changed | ||
@@ -243,0 +246,0 @@ if (this.hasConfig && |
{ | ||
"name": "@devcycle/nodejs-server-sdk", | ||
"version": "1.31.0", | ||
"version": "1.31.1", | ||
"description": "The DevCycle NodeJS Server SDK used for feature management.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
320590
3108