unleash-client
Advanced tools
Comparing version 3.3.0 to 3.3.1
# Changelog | ||
## 3.3.1 | ||
- fix: ensure destroy works more consistently (#153) | ||
## 3.3.0 | ||
@@ -4,0 +8,0 @@ |
@@ -1,1 +0,1 @@ | ||
{ "name": "unleash-client-node", "version": "3.3.0", "sdkVersion": "unleash-client-node:3.3.0" } | ||
{ "name": "unleash-client-node", "version": "3.3.1", "sdkVersion": "unleash-client-node:3.3.1" } |
@@ -33,2 +33,3 @@ import { EventEmitter } from 'events'; | ||
private timeout?; | ||
private stopped; | ||
constructor({ backupPath, url, appName, instanceId, refreshInterval, StorageImpl, timeout, headers, customHeadersFunction, }: RepositoryOptions); | ||
@@ -35,0 +36,0 @@ timedFetch(): void; |
@@ -60,2 +60,3 @@ "use strict"; | ||
var _this = _super.call(this) || this; | ||
_this.stopped = false; | ||
_this.url = url; | ||
@@ -106,2 +107,5 @@ _this.refreshInterval = refreshInterval; | ||
case 0: | ||
if (this.stopped) { | ||
return [2 /*return*/]; | ||
} | ||
url = url_1.resolve(this.url, './client/features'); | ||
@@ -161,4 +165,5 @@ if (!this.customHeadersFunction) return [3 /*break*/, 2]; | ||
Repository.prototype.stop = function () { | ||
this.stopped = true; | ||
if (this.timer) { | ||
clearInterval(this.timer); | ||
clearTimeout(this.timer); | ||
} | ||
@@ -165,0 +170,0 @@ this.removeAllListeners(); |
{ | ||
"name": "unleash-client", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Unleash Client for Node", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
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
148815
1848