smart-query-nestjs 1.0.0 → 1.0.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 +12 -4
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# smart-query-nestjs
|
|
2
2
|
|
|
3
3
|
A high-performance, ORM-agnostic NestJS library for search, filtering, pagination, and sorting in REST APIs.
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ A high-performance, ORM-agnostic NestJS library for search, filtering, paginatio
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install
|
|
20
|
+
npm install smart-query-nestjs
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Quick Start
|
|
@@ -26,7 +26,7 @@ npm install nestjs-smart-query
|
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
28
|
import { Module } from '@nestjs/common';
|
|
29
|
-
import { SmartQueryModule } from '
|
|
29
|
+
import { SmartQueryModule } from 'smart-query-nestjs';
|
|
30
30
|
|
|
31
31
|
@Module({
|
|
32
32
|
imports: [
|
|
@@ -48,7 +48,7 @@ export class AppModule {}
|
|
|
48
48
|
|
|
49
49
|
```typescript
|
|
50
50
|
import { Controller, Get, UseInterceptors } from '@nestjs/common';
|
|
51
|
-
import { SmartQueryInterceptor, SmartQuery, buildSmartQuery } from '
|
|
51
|
+
import { SmartQueryInterceptor, SmartQuery, buildSmartQuery } from 'smart-query-nestjs';
|
|
52
52
|
|
|
53
53
|
const customerQueryConfig = {
|
|
54
54
|
searchableFields: ['full_name', 'email'],
|
|
@@ -234,3 +234,11 @@ The library includes several performance optimizations:
|
|
|
234
234
|
## License
|
|
235
235
|
|
|
236
236
|
MIT
|
|
237
|
+
|
|
238
|
+
## Contributing
|
|
239
|
+
|
|
240
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
241
|
+
|
|
242
|
+
## Author
|
|
243
|
+
|
|
244
|
+
[Nurul Islam Rimon](https://github.com/nurulislamrimon)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smart-query-nestjs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "High-performance search, filtering, pagination, and sorting for NestJS REST APIs",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,8 +30,15 @@
|
|
|
30
30
|
"rest-api",
|
|
31
31
|
"orm-agnostic"
|
|
32
32
|
],
|
|
33
|
-
"author": "",
|
|
33
|
+
"author": "Nurul Islam Rimon",
|
|
34
34
|
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/nurulislamrimon/smart-query-nestjs.git"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/nurulislamrimon/smart-query-nestjs/issues"
|
|
41
|
+
},
|
|
35
42
|
"dependencies": {
|
|
36
43
|
"qs": "^6.12.0"
|
|
37
44
|
},
|