express-ext 0.6.2 → 0.6.3
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 +2 -0
- package/package.json +1 -1
- package/src/search.ts +2 -0
package/lib/search.js
CHANGED
|
@@ -253,6 +253,7 @@ exports.removeField = removeField
|
|
|
253
253
|
function removePage(search) {
|
|
254
254
|
search = removeField(search, resources_1.resources.page)
|
|
255
255
|
search = removeField(search, resources_1.resources.partial)
|
|
256
|
+
search = removeField(search, resources_1.resources.subPartial)
|
|
256
257
|
return search
|
|
257
258
|
}
|
|
258
259
|
exports.removePage = removePage
|
|
@@ -269,6 +270,7 @@ exports.buildPageSearchFromUrl = buildPageSearchFromUrl
|
|
|
269
270
|
function removeSort(search) {
|
|
270
271
|
search = removeField(search, resources_1.resources.sort)
|
|
271
272
|
search = removeField(search, resources_1.resources.partial)
|
|
273
|
+
search = removeField(search, resources_1.resources.subPartial)
|
|
272
274
|
return search
|
|
273
275
|
}
|
|
274
276
|
exports.removeSort = removeSort
|
package/package.json
CHANGED
package/src/search.ts
CHANGED
|
@@ -271,6 +271,7 @@ export function removeField(search: string, fieldName: string): string {
|
|
|
271
271
|
export function removePage(search: string): string {
|
|
272
272
|
search = removeField(search, resources.page)
|
|
273
273
|
search = removeField(search, resources.partial)
|
|
274
|
+
search = removeField(search, resources.subPartial)
|
|
274
275
|
return search
|
|
275
276
|
}
|
|
276
277
|
export function buildPageSearch(search: string): string {
|
|
@@ -284,6 +285,7 @@ export function buildPageSearchFromUrl(url: string): string {
|
|
|
284
285
|
export function removeSort(search: string): string {
|
|
285
286
|
search = removeField(search, resources.sort)
|
|
286
287
|
search = removeField(search, resources.partial)
|
|
288
|
+
search = removeField(search, resources.subPartial)
|
|
287
289
|
return search
|
|
288
290
|
}
|
|
289
291
|
export interface Sort {
|