react-native-ui-lib 9.1.0-snapshot.8037 → 9.1.0-snapshot.8039

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "9.1.0-snapshot.8037",
3
+ "version": "9.1.0-snapshot.8039",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -100,7 +100,7 @@
100
100
  "setimmediate": "^1.0.5",
101
101
  "shell-utils": "^1.0.10",
102
102
  "typescript": "5.0.4",
103
- "uilib-native": "5.1.2-snapshot.8019"
103
+ "uilib-native": "5.1.2-snapshot.8039"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": ">=19.0.0",
@@ -75,11 +75,15 @@ export function getBackgroundColor(name, avatarColors, hashFunction, defaultColo
75
75
  return avatarColors[index];
76
76
  }
77
77
  export function isGravatarUrl(url) {
78
- const {
79
- hostname,
80
- pathname
81
- } = new URL(url);
82
- return _split(hostname, '.').includes('gravatar') && pathname.startsWith('/avatar/');
78
+ try {
79
+ const {
80
+ hostname,
81
+ pathname
82
+ } = new URL(url);
83
+ return _split(hostname, '.').includes('gravatar') && pathname.startsWith('/avatar/');
84
+ } catch {
85
+ return false;
86
+ }
83
87
  }
84
88
  export function isBlankGravatarUrl(url) {
85
89
  return isGravatarUrl(url) && _endsWith(url, '?d=blank');