mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-09 17:24:28 +01:00
chore(js): publish 0.1.13
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "@synonymdev/pubky",
|
||||
"type": "module",
|
||||
"description": "Pubky client",
|
||||
"version": "0.1.12",
|
||||
"version": "0.1.13",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -293,6 +293,36 @@ test('list shallow', async (t) => {
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
let list = await client.list(url, null, false, 3, true);
|
||||
|
||||
t.deepEqual(
|
||||
list,
|
||||
[
|
||||
`pubky://${pubky}/pub/a.com/`,
|
||||
`pubky://${pubky}/pub/example.com/`,
|
||||
`pubky://${pubky}/pub/example.con`,
|
||||
],
|
||||
"normal list shallow with limit"
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
let list = await client.list(url, `example.com/`, false, null, true);
|
||||
|
||||
t.deepEqual(
|
||||
list,
|
||||
[
|
||||
`pubky://${pubky}/pub/example.con`,
|
||||
`pubky://${pubky}/pub/example.con/`,
|
||||
`pubky://${pubky}/pub/file`,
|
||||
`pubky://${pubky}/pub/file2`,
|
||||
`pubky://${pubky}/pub/z.com/`,
|
||||
],
|
||||
"normal list shallow with cursor"
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
let list = await client.list(url, null, true, null, true);
|
||||
|
||||
@@ -310,4 +340,18 @@ test('list shallow', async (t) => {
|
||||
"normal list shallow"
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
let list = await client.list(url, null, true, 3, true);
|
||||
|
||||
t.deepEqual(
|
||||
list,
|
||||
[
|
||||
`pubky://${pubky}/pub/z.com/`,
|
||||
`pubky://${pubky}/pub/file2`,
|
||||
`pubky://${pubky}/pub/file`,
|
||||
],
|
||||
"normal list shallow with limit"
|
||||
);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user