@configdirector/react-native-sdk 0.9.2 → 0.9.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.
@@ -809,12 +809,15 @@ var PollingTransport = class extends AbstractPollingTransport {
809
809
  }
810
810
  async connect(context, timeout) {
811
811
  this.clearPollingInterval();
812
- await this.fetchConfigs(context, timeout);
813
- this.schedulePollingInterval(() => {
814
- this.fetchConfigs(context, timeout).catch((error) => {
815
- this.logger.error("[PollingTransport] Error during polling:", error);
812
+ try {
813
+ await this.fetchConfigs(context, timeout);
814
+ } finally {
815
+ if (!this.fatalError) this.schedulePollingInterval(() => {
816
+ this.fetchConfigs(context, timeout).catch((error) => {
817
+ this.logger.error("[PollingTransport] Error during polling:", error);
818
+ });
816
819
  });
817
- });
820
+ }
818
821
  return this;
819
822
  }
820
823
  async fetchConfigs(context, timeout) {
@@ -1644,7 +1647,7 @@ const createClient = (clientSdkKey, clientOptions) => {
1644
1647
  const logger = (_clientOptions$logger = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.logger) !== null && _clientOptions$logger !== void 0 ? _clientOptions$logger : createConsoleLogger("warn");
1645
1648
  return new DefaultConfigDirectorClient(new ReactNativeTelemetryClient(clientSdkKey, (clientOptions === null || clientOptions === void 0 || (_clientOptions$connec = clientOptions.connection) === null || _clientOptions$connec === void 0 ? void 0 : _clientOptions$connec.url) ? urlFactory(clientOptions.connection.url) : CLIENT_BASE_URL, logger, urlFactory), clientSdkKey, {
1646
1649
  sdkName: "react-native-sdk",
1647
- sdkVersion: "0.9.2"
1650
+ sdkVersion: "0.9.3"
1648
1651
  }, {
1649
1652
  ...clientOptions,
1650
1653
  logger
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@configdirector/react-native-sdk",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "React Native client SDK for ConfigDirector. ConfigDirector is a remote configuration and feature flag service.",
5
5
  "license": "MIT",
6
6
  "author": "ConfigDirector",