@launchdarkly/react-native-client-sdk 10.1.3 → 10.1.4
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [10.1.4](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.1.3...react-native-client-sdk-v10.1.4) (2024-05-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Added iOS SettingsManager null check. ([#471](https://github.com/launchdarkly/js-core/issues/471)) ([8ff641b](https://github.com/launchdarkly/js-core/commit/8ff641be8b32f24884457bd506566e283cf04e40))
|
|
9
|
+
|
|
3
10
|
## [10.1.3](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.1.2...react-native-client-sdk-v10.1.3) (2024-04-26)
|
|
4
11
|
|
|
5
12
|
|
package/dist/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var _a;
|
|
1
|
+
var _a, _b;
|
|
2
2
|
import { NativeModules, Platform } from 'react-native';
|
|
3
3
|
/**
|
|
4
4
|
* Ripped from:
|
|
5
5
|
* https://dev.to/medaimane/localization-and-internationalization-in-react-native-reaching-global-audiences-3acj
|
|
6
6
|
*/
|
|
7
7
|
const locale = Platform.OS === 'ios'
|
|
8
|
-
? NativeModules.SettingsManager.settings.AppleLocale // iOS
|
|
9
|
-
: (
|
|
8
|
+
? (_a = NativeModules.SettingsManager) === null || _a === void 0 ? void 0 : _a.settings.AppleLocale // iOS
|
|
9
|
+
: (_b = NativeModules.I18nManager) === null || _b === void 0 ? void 0 : _b.localeIdentifier;
|
|
10
10
|
export default locale;
|
|
11
11
|
//# sourceMappingURL=locale.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/platform/locale.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,GACV,QAAQ,CAAC,EAAE,KAAK,KAAK;IACnB,CAAC,CAAC,aAAa,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/platform/locale.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,GACV,QAAQ,CAAC,EAAE,KAAK,KAAK;IACnB,CAAC,CAAC,MAAA,aAAa,CAAC,eAAe,0CAAE,QAAQ,CAAC,WAAW,CAAC,MAAM;IAC5D,CAAC,CAAC,MAAA,aAAa,CAAC,WAAW,0CAAE,gBAAgB,CAAC;AAElD,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED