c2-mongoose 2.1.6 → 2.1.7

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.
@@ -181,7 +181,7 @@ var SearchFlow = /** @class */ (function () {
181
181
  paging.limit = this.limit;
182
182
  searchResponse = {};
183
183
  searchResponse.items = items;
184
- searchResponse.pagination = paging;
184
+ searchResponse.paging = paging;
185
185
  return [2 /*return*/, searchResponse];
186
186
  }
187
187
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "Lib to make any search in database mongoose and use as basic crud",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -126,7 +126,7 @@ abstract class SearchFlow {
126
126
 
127
127
  var searchResponse: SearchResponse<any> = {}
128
128
  searchResponse.items = items
129
- searchResponse.pagination = paging
129
+ searchResponse.paging = paging
130
130
 
131
131
  return searchResponse
132
132
  }
@@ -1,5 +1,5 @@
1
1
  export declare interface SearchResponse<T> {
2
- pagination?: Pagination,
2
+ paging?: Pagination,
3
3
  items?: T[]
4
4
  }
5
5