Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf43d486

Browse files
authored
Merge pull request#409 from pivotaltracker/fetch-only-one-page
feat: use the page option to fetch a single page
2 parents46dd1d7 +21fe6b6 commitf43d486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/Requestable.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class Requestable {
256256
results.push(...thisGroup);
257257

258258
constnextUrl=getNextPage(response.headers.link);
259-
if(nextUrl){
259+
if(nextUrl&&typeofoptions.page!=='number'){
260260
log(`getting next page:${nextUrl}`);
261261
returnthis._requestAllPages(nextUrl,options,cb,results);
262262
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp