nestjs-paginate 7.1.2 → 7.1.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/README.md +3 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -384,11 +384,10 @@ Filter operators must be whitelisted per column in `PaginateConfig`.
|
|
|
384
384
|
const config: PaginateConfig<CatEntity> = {
|
|
385
385
|
// ...
|
|
386
386
|
filterableColumns: {
|
|
387
|
-
//
|
|
387
|
+
// Enable individual operators on a column
|
|
388
388
|
id: [FilterOperator.EQ, FilterSuffix.NOT],
|
|
389
|
-
'toys.name': [FilterOperator.IN],
|
|
390
389
|
|
|
391
|
-
//
|
|
390
|
+
// Enable all operators on a column
|
|
392
391
|
age: true,
|
|
393
392
|
},
|
|
394
393
|
}
|
|
@@ -422,7 +421,7 @@ Multi filters are filters that can be applied to a single column with a comparat
|
|
|
422
421
|
|
|
423
422
|
### Examples
|
|
424
423
|
|
|
425
|
-
`?filter.createdAt=$gt:2022-02-02&filter.createdAt=$lt:2022-02-10` where column `createdAt` is after `2022-02-02` **and**
|
|
424
|
+
`?filter.createdAt=$gt:2022-02-02&filter.createdAt=$lt:2022-02-10` where column `createdAt` is after `2022-02-02` **and** before `2022-02-10`
|
|
426
425
|
|
|
427
426
|
`?filter.id=$contains:moderator&filter.id=$or:$contains:admin` where column `roles` is an array and contains `moderator` **or** `admin`
|
|
428
427
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestjs-paginate",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"author": "Philipp Petzold <ppetzold@protonmail.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@nestjs/common": "^9.3.
|
|
35
|
+
"@nestjs/common": "^9.3.11",
|
|
36
36
|
"@types/express": "^4.17.17",
|
|
37
37
|
"@types/jest": "^29.5.0",
|
|
38
38
|
"@types/lodash": "^4.14.191",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"fastify": "^4.15.0",
|
|
46
46
|
"jest": "^29.5.0",
|
|
47
47
|
"pg": "^8.10.0",
|
|
48
|
-
"prettier": "^2.8.
|
|
48
|
+
"prettier": "^2.8.6",
|
|
49
49
|
"reflect-metadata": "^0.1.13",
|
|
50
50
|
"rxjs": "^7.8.0",
|
|
51
51
|
"sqlite3": "^5.1.6",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"lodash": "^4.17.21"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@nestjs/common": "^9.3.
|
|
61
|
+
"@nestjs/common": "^9.3.11",
|
|
62
62
|
"express": "^4.18.2",
|
|
63
63
|
"fastify": "^4.15.0",
|
|
64
64
|
"typeorm": "^0.3.12"
|