8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66c47b4 commit fa3ad62Copy full SHA for fa3ad62
packages/hub/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@huggingface/hub",
3
- "version": "0.1.0",
+ "version": "0.1.1",
4
"description": "Utilities to interact with the Hugging Face hub",
5
"repository": "https://github.com/huggingface/huggingface.js.git",
6
"publishConfig": {
packages/hub/src/lib/list-files.ts
@@ -46,6 +46,10 @@ export async function* listFiles(params: {
46
yield item;
47
}
48
49
- url = json.nextUrl;
+ url = json.nextUrl
50
+ ? json.nextUrl?.startsWith(params.hubUrl ?? HUB_URL)
51
+ ? json.nextUrl
52
+ : `${params.hubUrl ?? HUB_URL}${json.nextUrl}`
53
+ : undefined;
54
55
0 commit comments