@openfeature/flagd-provider 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +6 -4
  2. package/index.js +6 -4
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -2682,7 +2682,7 @@ function newError(name) {
2682
2682
  configurable: true,
2683
2683
  },
2684
2684
  name: {
2685
- get: function get() { return name; },
2685
+ get() { return name; },
2686
2686
  set: undefined,
2687
2687
  enumerable: false,
2688
2688
  // configurable: false would accurately preserve the behavior of
@@ -2692,7 +2692,7 @@ function newError(name) {
2692
2692
  configurable: true,
2693
2693
  },
2694
2694
  toString: {
2695
- value: function value() { return this.name + ": " + this.message; },
2695
+ value() { return this.name + ": " + this.message; },
2696
2696
  writable: true,
2697
2697
  enumerable: false,
2698
2698
  configurable: true,
@@ -5980,7 +5980,9 @@ class GRPCService {
5980
5980
  this._streamConnectAttempt++;
5981
5981
  setTimeout(() => {
5982
5982
  this._streamConnectBackoff = this._streamConnectBackoff * 2;
5983
- this.connectStream(connectCallback, changedCallback, disconnectCallback);
5983
+ this.connectStream(connectCallback, changedCallback, disconnectCallback).catch(() => {
5984
+ // empty catch to avoid unhandled promise rejection
5985
+ });
5984
5986
  }, this._streamConnectBackoff);
5985
5987
  }
5986
5988
  else {
@@ -5992,7 +5994,7 @@ class GRPCService {
5992
5994
  }
5993
5995
  handleClose() {
5994
5996
  var _a, _b;
5995
- (_a = this.logger) === null || _a === void 0 ? void 0 : _a.info(`${FlagdProvider.name}: streaming connection closed gracefully`);
5997
+ (_a = this.logger) === null || _a === void 0 ? void 0 : _a.info(`${FlagdProvider.name}: streaming connection closed`);
5996
5998
  (_b = this._cache) === null || _b === void 0 ? void 0 : _b.clear();
5997
5999
  this._streamAlive = false;
5998
6000
  }
package/index.js CHANGED
@@ -2678,7 +2678,7 @@ function newError(name) {
2678
2678
  configurable: true,
2679
2679
  },
2680
2680
  name: {
2681
- get: function get() { return name; },
2681
+ get() { return name; },
2682
2682
  set: undefined,
2683
2683
  enumerable: false,
2684
2684
  // configurable: false would accurately preserve the behavior of
@@ -2688,7 +2688,7 @@ function newError(name) {
2688
2688
  configurable: true,
2689
2689
  },
2690
2690
  toString: {
2691
- value: function value() { return this.name + ": " + this.message; },
2691
+ value() { return this.name + ": " + this.message; },
2692
2692
  writable: true,
2693
2693
  enumerable: false,
2694
2694
  configurable: true,
@@ -5976,7 +5976,9 @@ class GRPCService {
5976
5976
  this._streamConnectAttempt++;
5977
5977
  setTimeout(() => {
5978
5978
  this._streamConnectBackoff = this._streamConnectBackoff * 2;
5979
- this.connectStream(connectCallback, changedCallback, disconnectCallback);
5979
+ this.connectStream(connectCallback, changedCallback, disconnectCallback).catch(() => {
5980
+ // empty catch to avoid unhandled promise rejection
5981
+ });
5980
5982
  }, this._streamConnectBackoff);
5981
5983
  }
5982
5984
  else {
@@ -5988,7 +5990,7 @@ class GRPCService {
5988
5990
  }
5989
5991
  handleClose() {
5990
5992
  var _a, _b;
5991
- (_a = this.logger) === null || _a === void 0 ? void 0 : _a.info(`${FlagdProvider.name}: streaming connection closed gracefully`);
5993
+ (_a = this.logger) === null || _a === void 0 ? void 0 : _a.info(`${FlagdProvider.name}: streaming connection closed`);
5992
5994
  (_b = this._cache) === null || _b === void 0 ? void 0 : _b.clear();
5993
5995
  this._streamAlive = false;
5994
5996
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfeature/flagd-provider",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "scripts": {
5
5
  "publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
6
6
  "current-version": "echo $npm_package_version"