@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/CHANGELOG.md +16 -0
- package/client.js +2 -2
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -4
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +1 -4
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/top-level.d.mts +2884 -314
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +2884 -314
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +2 -2
- package/src/core/pagination.ts +1 -5
- package/src/resources/top-level.ts +7763 -4176
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
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
|
/**
|
package/src/core/pagination.ts
CHANGED
|
@@ -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
|
|