@replit/connectors 0.2.0 → 0.3.0

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/src/client.ts CHANGED
@@ -258,8 +258,8 @@ export class Replit {
258
258
  params: TopLevelAPI.AssignConnectionParams,
259
259
  options?: RequestOptions,
260
260
  ): APIPromise<TopLevelAPI.AssignConnectionResponse> {
261
- const { id } = params;
262
- return this.put(path`/v2/connection/${id}/assignment/${replID}`, options);
261
+ const { id, ...body } = params;
262
+ return this.put(path`/v2/connection/${id}/assignment/${replID}`, { body, ...options });
263
263
  }
264
264
 
265
265
  /**
@@ -152,11 +152,7 @@ export class OffsetPagination<Item> extends AbstractPage<Item> implements Offset
152
152
  }
153
153
 
154
154
  nextPageRequestOptions(): PageRequestOptions | null {
155
- const offset = this.offset;
156
- if (!offset) {
157
- return null;
158
- }
159
-
155
+ const offset = this.offset ?? 0;
160
156
  const length = this.getPaginatedItems().length;
161
157
  const currentCount = offset + length;
162
158