@@ -21,7 +21,7 @@ import { pooledMap } from "@std/async/pool";
2121import { range } from "@core/iterutil/range" ;
2222import { flatten } from "@core/iterutil/async/flatten" ;
2323
24- /** Options for {@linkcode get }
24+ /** Options for {@linkcode listPages }
2525 *
2626 * @experimental **UNSTABLE**: New API, yet to be vetted.
2727 */
@@ -102,7 +102,7 @@ export const makeGetRequest = <R extends Response | undefined>(
102102 * - {@linkcode NotLoggedInError}: Authentication required
103103 * - {@linkcode NotMemberError}: User lacks access
104104 */
105- export const get = < R extends Response | undefined = Response > (
105+ export const listPages = < R extends Response | undefined = Response > (
106106 project : string ,
107107 options ?: ListPagesOption < R > ,
108108) : Promise <
@@ -125,7 +125,7 @@ export const get = <R extends Response | undefined = Response>(
125125 > ;
126126
127127/**
128- * Options for {@linkcode list }
128+ * Options for {@linkcode listPagesStream }
129129 *
130130 * @experimental **UNSTABLE**: New API, yet to be vetted.
131131 */
@@ -147,7 +147,7 @@ export interface ListPagesStreamOption<R extends Response | undefined>
147147 * @param options Configuration options for pagination and sorting
148148 * @throws {HTTPError | TypedError<"NotLoggedInError" | "NotMemberError" | "NotFoundError"> } If any requests in the pagination sequence fail
149149 */
150- export async function * list (
150+ export async function * listPagesStream (
151151 project : string ,
152152 options ?: ListPagesStreamOption < Response > ,
153153) : AsyncGenerator < BasePage , void , unknown > {
@@ -156,7 +156,7 @@ export async function* list(
156156 skip : options ?. skip ?? 0 ,
157157 limit : options ?. limit ?? 100 ,
158158 } ;
159- const response = await ensureResponse ( await get ( project , props ) ) ;
159+ const response = await ensureResponse ( await listPages ( project , props ) ) ;
160160 const list = await response . json ( ) ;
161161 yield * list . pages ;
162162
@@ -170,7 +170,7 @@ export async function* list(
170170 range ( 0 , times - 1 ) ,
171171 async ( i ) => {
172172 const response = await ensureResponse (
173- await get ( project , { ...props , skip : skip + i * limit , limit } ) ,
173+ await listPages ( project , { ...props , skip : skip + i * limit , limit } ) ,
174174 ) ;
175175 const list = await response . json ( ) ;
176176 return list . pages ;
@@ -203,6 +203,6 @@ const ensureResponse = async (
203203 }
204204} ;
205205
206- export * as replace from "./project/replace.ts" ;
207- export * as search from "./project/search.ts" ;
208- export * as title from "./project/title.ts" ;
206+ export * from "./project/replace.ts" ;
207+ export * from "./project/search.ts" ;
208+ export * from "./project/title.ts" ;
0 commit comments