docpouch-client 0.8.13 → 0.8.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -62,7 +62,7 @@ export default class docPouchClient {
62
62
  removeUser(userID: string): Promise<void>;
63
63
  createDocument(document: I_DocumentEntry): Promise<I_DocumentEntry>;
64
64
  listDocuments(): Promise<I_DocumentEntry[]>;
65
- fetchDocument(queryObject: I_DocumentQuery): Promise<I_DocumentEntry[]>;
65
+ fetchDocuments(queryObject: I_DocumentQuery): Promise<I_DocumentEntry[]>;
66
66
  updateDocument(documentID: string, documentData: I_DocumentEntry): Promise<void>;
67
67
  removeDocument(documentID: string): Promise<void>;
68
68
  createStructure(structure: I_StructureCreation): Promise<I_DataStructure>;
package/dist/index.js CHANGED
@@ -117,7 +117,7 @@ export default class docPouchClient {
117
117
  async listDocuments() {
118
118
  return await this.request('/docs/list', 'GET');
119
119
  }
120
- async fetchDocument(queryObject) {
120
+ async fetchDocuments(queryObject) {
121
121
  return await this.request(`/docs/fetch/`, 'POST', queryObject);
122
122
  }
123
123
  async updateDocument(documentID, documentData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docpouch-client",
3
- "version": "0.8.13",
3
+ "version": "0.8.14",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
package/src/index.ts CHANGED
@@ -154,7 +154,7 @@ export default class docPouchClient {
154
154
  return await this.request<I_DocumentEntry[]>('/docs/list', 'GET');
155
155
  }
156
156
 
157
- async fetchDocument(queryObject: I_DocumentQuery): Promise<I_DocumentEntry[]> {
157
+ async fetchDocuments(queryObject: I_DocumentQuery): Promise<I_DocumentEntry[]> {
158
158
  return await this.request<I_DocumentEntry[]>(`/docs/fetch/`, 'POST', queryObject);
159
159
  }
160
160