@ajustee/ajustee-client-node
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -268,17 +268,15 @@ "use strict"; | ||
this.setStatus("Disconnected"); | ||
if (event.code === 1001) { | ||
if (this.subscribedKeys.size > 0) { | ||
for (const keyInfo of this.subscribedKeys.values()) { | ||
const oldKey = keyInfo.oldKey; | ||
if (oldKey) { | ||
keyInfo.oldKey = undefined; | ||
this.setKeyStatus(oldKey, "Unsubscribed"); | ||
} | ||
else if (keyInfo.status === "Unsubscribing") { | ||
this.setKeyStatus(keyInfo, "Unsubscribed"); | ||
this.subscribedKeys.delete(keyInfo.path); | ||
} | ||
if (this.subscribedKeys.size > 0) { | ||
for (const keyInfo of this.subscribedKeys.values()) { | ||
const oldKey = keyInfo.oldKey; | ||
if (oldKey) { | ||
keyInfo.oldKey = undefined; | ||
this.setKeyStatus(oldKey, "Unsubscribed"); | ||
} | ||
setTimeout(this.connect.bind(this), 0); | ||
else if (keyInfo.status === "Unsubscribing") { | ||
this.setKeyStatus(keyInfo, "Unsubscribed"); | ||
this.subscribedKeys.delete(keyInfo.path); | ||
} | ||
} | ||
setTimeout(this.connect.bind(this), 0); | ||
} | ||
@@ -285,0 +283,0 @@ this.webSocket.onopen = undefined; |
{ | ||
"name": "@ajustee/ajustee-client-node", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Ajustee Config Center FrontOffice API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
27482
642