crud-query-parser 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/README.md +37 -11
  2. package/dist/adapters/typeorm/index.d.mts +104 -10
  3. package/dist/adapters/typeorm/index.d.ts +104 -10
  4. package/dist/adapters/typeorm/index.js +1 -1
  5. package/dist/adapters/typeorm/index.js.map +1 -1
  6. package/dist/adapters/typeorm/index.mjs +1 -1
  7. package/dist/adapters/typeorm/index.mjs.map +1 -1
  8. package/dist/{parsed-request-where.builder-DME55XmN.d.ts → crud-request-where.builder-B5241Aht.d.ts} +7 -7
  9. package/dist/{parsed-request-where.builder-DRZUAxu4.d.mts → crud-request-where.builder-BwWLx0Bh.d.mts} +7 -7
  10. package/dist/{crud-request-CvDKp6Iy.d.mts → crud-request-x16CuDRF.d.mts} +1 -0
  11. package/dist/{crud-request-CvDKp6Iy.d.ts → crud-request-x16CuDRF.d.ts} +1 -0
  12. package/dist/filters/index.d.mts +11 -2
  13. package/dist/filters/index.d.ts +11 -2
  14. package/dist/filters/index.js +1 -1
  15. package/dist/filters/index.js.map +1 -1
  16. package/dist/filters/index.mjs +1 -1
  17. package/dist/filters/index.mjs.map +1 -1
  18. package/dist/helpers/nestjs/index.d.mts +2 -2
  19. package/dist/helpers/nestjs/index.d.ts +2 -2
  20. package/dist/helpers/nestjs/index.js.map +1 -1
  21. package/dist/helpers/nestjs/index.mjs.map +1 -1
  22. package/dist/index.d.mts +4 -4
  23. package/dist/index.d.ts +4 -4
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +1 -1
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/parsers/crud/index.d.mts +34 -9
  29. package/dist/parsers/crud/index.d.ts +34 -9
  30. package/dist/parsers/crud/index.js +1 -1
  31. package/dist/parsers/crud/index.js.map +1 -1
  32. package/dist/parsers/crud/index.mjs +1 -1
  33. package/dist/parsers/crud/index.mjs.map +1 -1
  34. package/dist/{query-adapter-Vebxws3V.d.ts → query-adapter-CEcyFcWr.d.ts} +1 -1
  35. package/dist/{query-adapter-BliD9hJN.d.mts → query-adapter-CeTK3yxp.d.mts} +1 -1
  36. package/dist/{request-parser-WaQBZsYG.d.mts → request-parser-BMkszvGr.d.mts} +1 -1
  37. package/dist/{request-parser-B-fK5GnP.d.ts → request-parser-BxVulcsX.d.ts} +1 -1
  38. package/package.json +133 -118
package/package.json CHANGED
@@ -1,118 +1,133 @@
1
- {
2
- "name": "crud-query-parser",
3
- "version": "0.0.2",
4
- "description": "Parses HTTP requests and converts them into database queries",
5
- "license": "MIT",
6
- "author": "Guilherme Chaguri",
7
- "scripts": {
8
- "build": "tsup",
9
- "prepublishOnly": "npm run build"
10
- },
11
- "tsup": {
12
- "entry": [
13
- "src/index.ts",
14
- "src/adapters/typeorm/index.ts",
15
- "src/parsers/crud/index.ts",
16
- "src/helpers/nestjs/index.ts",
17
- "src/filters/index.ts"
18
- ],
19
- "target": "es2022",
20
- "format": [
21
- "esm",
22
- "cjs"
23
- ],
24
- "outDir": "./dist",
25
- "dts": true,
26
- "cjsInterop": true,
27
- "minify": true,
28
- "splitting": false,
29
- "sourcemap": true,
30
- "clean": true,
31
- "skipNodeModulesBundle": true,
32
- "keepNames": true,
33
- "bundle": true
34
- },
35
- "files": [
36
- "dist"
37
- ],
38
- "main": "./dist/index.js",
39
- "types": "./dist/index.d.ts",
40
- "exports": {
41
- ".": {
42
- "import": {
43
- "default": "./dist/index.mjs",
44
- "types": "./dist/index.d.mts"
45
- },
46
- "require": {
47
- "default": "./dist/index.js",
48
- "types": "./dist/index.d.ts"
49
- }
50
- },
51
- "./adapters/typeorm": {
52
- "import": {
53
- "default": "./dist/adapters/typeorm/index.mjs",
54
- "types": "./dist/adapters/typeorm/index.d.mts"
55
- },
56
- "require": {
57
- "default": "./dist/adapters/typeorm/index.js",
58
- "types": "./dist/adapters/typeorm/index.d.ts"
59
- }
60
- },
61
- "./parsers/crud": {
62
- "import": {
63
- "default": "./dist/parsers/crud/index.mjs",
64
- "types": "./dist/parsers/crud/index.d.mts"
65
- },
66
- "require": {
67
- "default": "./dist/parsers/crud/index.js",
68
- "types": "./dist/parsers/crud/index.d.ts"
69
- }
70
- },
71
- "./helpers/nestjs": {
72
- "import": {
73
- "default": "./dist/helpers/nestjs/index.mjs",
74
- "types": "./dist/helpers/nestjs/index.d.mts"
75
- },
76
- "require": {
77
- "default": "./dist/helpers/nestjs/index.js",
78
- "types": "./dist/helpers/nestjs/index.d.ts"
79
- }
80
- },
81
- "./filters": {
82
- "import": {
83
- "default": "./dist/filters/index.mjs",
84
- "types": "./dist/filters/index.d.mts"
85
- },
86
- "require": {
87
- "default": "./dist/filters/index.js",
88
- "types": "./dist/filters/index.d.ts"
89
- }
90
- }
91
- },
92
- "peerDependencies": {
93
- "@nestjs/core": ">=10.0.0",
94
- "@nestjs/swagger": ">=7.0.0",
95
- "typeorm": "0.2.x || 0.3.x"
96
- },
97
- "peerDependenciesMeta": {
98
- "@nestjs/core": {
99
- "optional": true
100
- },
101
- "@nestjs/swagger": {
102
- "optional": true
103
- },
104
- "typeorm": {
105
- "optional": true
106
- }
107
- },
108
- "devDependencies": {
109
- "@nestjs/common": "^10.3.9",
110
- "@nestjs/swagger": "^7.3.1",
111
- "@types/node": "^17.0.23",
112
- "reflect-metadata": "^0.2.2",
113
- "sqlite3": "^5.1.7",
114
- "tsup": "^8.1.0",
115
- "typeorm": "^0.3.20",
116
- "typescript": "^5.5.2"
117
- }
118
- }
1
+ {
2
+ "name": "crud-query-parser",
3
+ "version": "0.1.0",
4
+ "description": "Parses HTTP requests and converts them into database queries",
5
+ "keywords": [
6
+ "crud",
7
+ "http",
8
+ "query",
9
+ "request",
10
+ "parser",
11
+ "typeorm",
12
+ "nestjs"
13
+ ],
14
+ "license": "MIT",
15
+ "author": "Guilherme Chaguri",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/Guichaguri/crud-query-parser.git"
19
+ },
20
+ "scripts": {
21
+ "build": "tsup",
22
+ "prepublishOnly": "npm run build",
23
+ "sample:typeorm": "ts-node ./samples/typeorm/index.ts"
24
+ },
25
+ "tsup": {
26
+ "entry": [
27
+ "src/index.ts",
28
+ "src/adapters/typeorm/index.ts",
29
+ "src/parsers/crud/index.ts",
30
+ "src/helpers/nestjs/index.ts",
31
+ "src/filters/index.ts"
32
+ ],
33
+ "target": "es2022",
34
+ "format": [
35
+ "esm",
36
+ "cjs"
37
+ ],
38
+ "outDir": "./dist",
39
+ "dts": true,
40
+ "cjsInterop": true,
41
+ "minify": true,
42
+ "splitting": false,
43
+ "sourcemap": true,
44
+ "clean": true,
45
+ "skipNodeModulesBundle": true,
46
+ "keepNames": true,
47
+ "bundle": true
48
+ },
49
+ "files": [
50
+ "dist"
51
+ ],
52
+ "main": "./dist/index.js",
53
+ "types": "./dist/index.d.ts",
54
+ "exports": {
55
+ ".": {
56
+ "import": {
57
+ "default": "./dist/index.mjs",
58
+ "types": "./dist/index.d.mts"
59
+ },
60
+ "require": {
61
+ "default": "./dist/index.js",
62
+ "types": "./dist/index.d.ts"
63
+ }
64
+ },
65
+ "./adapters/typeorm": {
66
+ "import": {
67
+ "default": "./dist/adapters/typeorm/index.mjs",
68
+ "types": "./dist/adapters/typeorm/index.d.mts"
69
+ },
70
+ "require": {
71
+ "default": "./dist/adapters/typeorm/index.js",
72
+ "types": "./dist/adapters/typeorm/index.d.ts"
73
+ }
74
+ },
75
+ "./parsers/crud": {
76
+ "import": {
77
+ "default": "./dist/parsers/crud/index.mjs",
78
+ "types": "./dist/parsers/crud/index.d.mts"
79
+ },
80
+ "require": {
81
+ "default": "./dist/parsers/crud/index.js",
82
+ "types": "./dist/parsers/crud/index.d.ts"
83
+ }
84
+ },
85
+ "./helpers/nestjs": {
86
+ "import": {
87
+ "default": "./dist/helpers/nestjs/index.mjs",
88
+ "types": "./dist/helpers/nestjs/index.d.mts"
89
+ },
90
+ "require": {
91
+ "default": "./dist/helpers/nestjs/index.js",
92
+ "types": "./dist/helpers/nestjs/index.d.ts"
93
+ }
94
+ },
95
+ "./filters": {
96
+ "import": {
97
+ "default": "./dist/filters/index.mjs",
98
+ "types": "./dist/filters/index.d.mts"
99
+ },
100
+ "require": {
101
+ "default": "./dist/filters/index.js",
102
+ "types": "./dist/filters/index.d.ts"
103
+ }
104
+ }
105
+ },
106
+ "peerDependencies": {
107
+ "@nestjs/core": ">=10.0.0",
108
+ "@nestjs/swagger": ">=7.0.0",
109
+ "typeorm": "0.2.x || 0.3.x"
110
+ },
111
+ "peerDependenciesMeta": {
112
+ "@nestjs/core": {
113
+ "optional": true
114
+ },
115
+ "@nestjs/swagger": {
116
+ "optional": true
117
+ },
118
+ "typeorm": {
119
+ "optional": true
120
+ }
121
+ },
122
+ "devDependencies": {
123
+ "@nestjs/common": "^10.3.9",
124
+ "@nestjs/swagger": "^7.3.1",
125
+ "@types/node": "^17.0.23",
126
+ "reflect-metadata": "^0.2.2",
127
+ "sqlite3": "^5.1.7",
128
+ "ts-node": "^10.9.2",
129
+ "tsup": "^8.1.0",
130
+ "typeorm": "^0.3.20",
131
+ "typescript": "^5.5.2"
132
+ }
133
+ }