@xtr-dev/rondevu-client 0.7.4 → 0.7.5

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/offers.d.ts CHANGED
@@ -55,11 +55,13 @@ export declare class RondevuOffers {
55
55
  getTopics(options?: {
56
56
  limit?: number;
57
57
  offset?: number;
58
+ startsWith?: string;
58
59
  }): Promise<{
59
60
  topics: TopicInfo[];
60
61
  total: number;
61
62
  limit: number;
62
63
  offset: number;
64
+ startsWith?: string;
63
65
  }>;
64
66
  /**
65
67
  * Get own offers
package/dist/offers.js CHANGED
@@ -81,6 +81,9 @@ export class RondevuOffers {
81
81
  if (options?.offset) {
82
82
  params.set('offset', options.offset.toString());
83
83
  }
84
+ if (options?.startsWith) {
85
+ params.set('startsWith', options.startsWith);
86
+ }
84
87
  const url = `${this.baseUrl}/topics${params.toString() ? '?' + params.toString() : ''}`;
85
88
  const response = await this.fetchFn(url, {
86
89
  method: 'GET',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtr-dev/rondevu-client",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "TypeScript client for Rondevu topic-based peer discovery and signaling server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",