express-ext 0.3.7 → 0.3.8
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/lib/search.js +1 -1
- package/package.json +1 -1
- package/src/search.ts +1 -1
package/lib/search.js
CHANGED
|
@@ -229,7 +229,7 @@ function clone(obj) {
|
|
|
229
229
|
return x;
|
|
230
230
|
}
|
|
231
231
|
exports.clone = clone;
|
|
232
|
-
function cloneFilter(obj,
|
|
232
|
+
function cloneFilter(obj, limit, page) {
|
|
233
233
|
var f = clone(obj);
|
|
234
234
|
if (!obj.hasOwnProperty(resources_1.resources.page)) {
|
|
235
235
|
obj[resources_1.resources.page] = page;
|
package/package.json
CHANGED
package/src/search.ts
CHANGED
|
@@ -250,7 +250,7 @@ export function clone(obj: any): any {
|
|
|
250
250
|
}
|
|
251
251
|
return x;
|
|
252
252
|
}
|
|
253
|
-
export function cloneFilter<F extends Filter>(obj: F,
|
|
253
|
+
export function cloneFilter<F extends Filter>(obj: F, limit: number, page: number): F {
|
|
254
254
|
const f = clone(obj);
|
|
255
255
|
if (!obj.hasOwnProperty(resources.page)) {
|
|
256
256
|
(obj as any)[resources.page] = page;
|