@explorins/pers-sdk-react-native 2.2.0-alpha.5 → 2.2.0-alpha.7

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/dist/index.js CHANGED
@@ -4564,20 +4564,25 @@ class UserApi {
4564
4564
  */
4565
4565
  async getAllUsersPublicProfiles(filter = null, options) {
4566
4566
  let url = `${this.basePath}/public`;
4567
- const params = new URLSearchParams();
4567
+ // Use object-based params instead of URLSearchParams for React Native compatibility
4568
+ const params = {};
4568
4569
  if (filter) {
4569
4570
  // Same parameter pattern for compatibility
4570
- params.set('filterKey', filter.key);
4571
- params.set('filterValue', filter.value);
4571
+ params['filterKey'] = filter.key;
4572
+ params['filterValue'] = filter.value;
4572
4573
  }
4573
4574
  // Add pagination parameters
4574
4575
  if (options) {
4575
4576
  Object.entries(buildPaginationParams(options)).forEach(([key, value]) => {
4576
- params.set(key, value);
4577
+ params[key] = value;
4577
4578
  });
4578
4579
  }
4579
- if (params.toString()) {
4580
- url += `?${params.toString()}`;
4580
+ // Build query string manually for RN compatibility
4581
+ const queryString = Object.entries(params)
4582
+ .map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`)
4583
+ .join('&');
4584
+ if (queryString) {
4585
+ url += `?${queryString}`;
4581
4586
  }
4582
4587
  const response = await this.apiClient.get(url);
4583
4588
  return normalizeToPaginated(response);
@@ -10351,7 +10356,7 @@ class DefaultAuthProvider {
10351
10356
  /** SDK package name */
10352
10357
  const SDK_NAME = "@explorins/pers-sdk";
10353
10358
  /** SDK version - injected from package.json at build time */
10354
- const SDK_VERSION = "2.1.32";
10359
+ const SDK_VERSION = "2.1.33-alpha.0";
10355
10360
  /** Full SDK identifier for headers */
10356
10361
  const SDK_USER_AGENT = `${SDK_NAME}/${SDK_VERSION}`;
10357
10362