hive-react-kit 0.10.1 → 0.10.2

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.
@@ -1,6 +1,8 @@
1
1
  import { CommunityItem, CommunityDetailsResponse, CommunitySubscriber, CommunityActivity } from '../types/community';
2
2
  declare class CommunityService {
3
- private readonly HIVE_API_URL;
3
+ /** Always read the latest endpoint — `setHiveApiEndpoint()` may have been
4
+ * called after construction, and a stale instance field would miss it. */
5
+ private get HIVE_API_URL();
4
6
  getListOfCommunities(query?: string, limit?: number, last?: string): Promise<CommunityItem[]>;
5
7
  getCommunityDetails(communityId: string): Promise<CommunityDetailsResponse>;
6
8
  getCommunitySubscribers(communityId: string, limit?: number, last?: string): Promise<CommunitySubscriber[]>;
@@ -16,7 +16,9 @@ export declare const SNAP_SUBTYPE_PARENTS: {
16
16
  };
17
17
  export type SnapSubType = keyof typeof SNAP_SUBTYPE_PARENTS;
18
18
  declare class UserService {
19
- private readonly HIVE_API_URL;
19
+ /** Always read the latest endpoint — `setHiveApiEndpoint()` may have been
20
+ * called after construction, and a stale instance field would miss it. */
21
+ private get HIVE_API_URL();
20
22
  /** Central fetch wrapper — threads AbortSignal to every network request */
21
23
  private _fetch;
22
24
  getProfile(username: string, signal?: AbortSignal): Promise<UserProfileResponse>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "0.10.1",
4
+ "version": "0.10.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",