@configdirector/react-native-sdk 1.3.0 → 1.4.0
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.
|
@@ -511,7 +511,7 @@ var StreamingTransport = class {
|
|
|
511
511
|
return new ConfigDirectorConnectionError(`${`Connection failed with status: ${responseStatus !== null && responseStatus !== void 0 ? responseStatus : "unknown"}.`}${error ? ` Error: ${error}` : ""}. This is an unrecoverable error, will not attempt to reconnect.`, status);
|
|
512
512
|
}
|
|
513
513
|
isStatusFatal(status) {
|
|
514
|
-
return !!status && status >= 400 && status < 500;
|
|
514
|
+
return !!status && status >= 400 && status < 500 && status != 429;
|
|
515
515
|
}
|
|
516
516
|
on(name, handler) {
|
|
517
517
|
this.eventEmitter.on(name, handler);
|
|
@@ -879,7 +879,7 @@ var AbstractPollingTransport = class {
|
|
|
879
879
|
return new ConfigDirectorConnectionError(`${`Connection failed with status: ${responseStatus !== null && responseStatus !== void 0 ? responseStatus : "unknown"}`}${((_errorBody$trim$lengt = errorBody === null || errorBody === void 0 || (_errorBody$trim = errorBody.trim()) === null || _errorBody$trim === void 0 ? void 0 : _errorBody$trim.length) !== null && _errorBody$trim$lengt !== void 0 ? _errorBody$trim$lengt : 0) > 0 ? ` (${errorBody})` : ""}. This is an unrecoverable error, retry attempts will be ignored.`, status);
|
|
880
880
|
}
|
|
881
881
|
isStatusFatal(status) {
|
|
882
|
-
return !!status && status >= 400 && status < 500;
|
|
882
|
+
return !!status && status >= 400 && status < 500 && status != 429;
|
|
883
883
|
}
|
|
884
884
|
isFetchErrorFatal(fetchError) {
|
|
885
885
|
return (fetchError === null || fetchError === void 0 ? void 0 : fetchError.name) === "NotAllowedError";
|
|
@@ -1404,7 +1404,7 @@ var ClientEventReporter = class {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
isStatusFatal(status) {
|
|
1407
|
-
return !!status && status >= 400 && status < 500;
|
|
1407
|
+
return !!status && status >= 400 && status < 500 && status != 429;
|
|
1408
1408
|
}
|
|
1409
1409
|
};
|
|
1410
1410
|
//#endregion
|
|
@@ -1801,7 +1801,7 @@ const createClient = (clientSdkKey, clientOptions) => {
|
|
|
1801
1801
|
var _clientOptions$logger, _clientOptions$connec;
|
|
1802
1802
|
const sdkIdentity = {
|
|
1803
1803
|
sdkName: "react-native-sdk",
|
|
1804
|
-
sdkVersion: "1.
|
|
1804
|
+
sdkVersion: "1.4.0"
|
|
1805
1805
|
};
|
|
1806
1806
|
const logger = (_clientOptions$logger = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.logger) !== null && _clientOptions$logger !== void 0 ? _clientOptions$logger : createConsoleLogger("warn");
|
|
1807
1807
|
return new DefaultConfigDirectorClient(new ReactNativeTelemetryClient({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configdirector/react-native-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
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",
|