Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit 113e536

Browse files
committed
added count function and released v1.4.3
1 parent f124d54 commit 113e536

File tree

3 files changed

+160
-6
lines changed

3 files changed

+160
-6
lines changed

package-lock.json

Lines changed: 155 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@staticbackend/backend",
3-
"version": "1.4.0",
3+
"version": "1.4.3",
44
"description": "Client library for StaticBackend API",
55
"main": "./dist/index.js",
66
"scripts": {

src/backend.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ export class Backend {
170170
return await this.req(token, "DELETE", `/db/${repo}/${id}`);
171171
}
172172

173+
async count(token: string, repo: string, filters) {
174+
return await this.req(token, "POST", `/db/count/${repo}`, filters);
175+
}
176+
173177
async sudoList(rootToken: string, repo: string, param?: ListParam) {
174178
const qs = this.listParamToQuerystring(param);
175179
return await this.req(rootToken, "GET", `/sudo/${repo}${qs}`);

0 commit comments

Comments
 (0)