@visulima/api-platform 3.0.0 → 3.0.1

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/bin/index.js +1 -1
  3. package/dist/{chunk-3XT5P2HO.js → chunk-4C666HHU.js} +1 -1
  4. package/dist/{chunk-GSCIKFAG.mjs → chunk-4CYX3UMQ.mjs} +1 -1
  5. package/dist/chunk-4CYX3UMQ.mjs.map +1 -0
  6. package/dist/{chunk-FKGPVTGA.mjs → chunk-66EUOAFS.mjs} +2 -2
  7. package/dist/{chunk-NPG5BMQQ.js → chunk-BYMOIJWB.js} +1 -1
  8. package/dist/chunk-BYMOIJWB.js.map +1 -0
  9. package/dist/{chunk-HTAA47WA.mjs → chunk-HZWWJL43.mjs} +1 -1
  10. package/dist/chunk-IWQGMV5V.js +28 -0
  11. package/dist/chunk-IWQGMV5V.js.map +1 -0
  12. package/dist/chunk-LZNF7WWH.mjs +20 -0
  13. package/dist/chunk-LZNF7WWH.mjs.map +1 -0
  14. package/dist/{chunk-4H6B66HI.js → chunk-UPRO35MO.js} +3 -3
  15. package/dist/framework/cli/commander/index.js +3 -3
  16. package/dist/framework/cli/commander/index.mjs +2 -2
  17. package/dist/framework/cli/index.js +3 -3
  18. package/dist/framework/cli/index.mjs +2 -2
  19. package/dist/framework/next/index-browser.js +1 -1
  20. package/dist/framework/next/index-browser.mjs +1 -1
  21. package/dist/framework/next/index-server.js +3 -3
  22. package/dist/framework/next/index-server.mjs +2 -2
  23. package/dist/framework/next/routes/pages/redoc/index.js +1 -1
  24. package/dist/framework/next/routes/pages/redoc/index.js.map +1 -1
  25. package/dist/framework/next/routes/pages/redoc/index.mjs +1 -1
  26. package/dist/framework/next/routes/pages/redoc/index.mjs.map +1 -1
  27. package/dist/framework/next/routes/pages/swagger/index.js +1 -1
  28. package/dist/framework/next/routes/pages/swagger/index.js.map +1 -1
  29. package/dist/framework/next/routes/pages/swagger/index.mjs +1 -1
  30. package/dist/framework/next/routes/pages/swagger/index.mjs.map +1 -1
  31. package/dist/index-browser.js +3 -3
  32. package/dist/index-browser.mjs +2 -2
  33. package/dist/index-server.js +9 -9
  34. package/dist/index-server.js.map +1 -1
  35. package/dist/index-server.mjs +4 -4
  36. package/dist/index-server.mjs.map +1 -1
  37. package/package.json +338 -338
  38. package/dist/chunk-7ZVHLLMU.js +0 -28
  39. package/dist/chunk-7ZVHLLMU.js.map +0 -1
  40. package/dist/chunk-GSCIKFAG.mjs.map +0 -1
  41. package/dist/chunk-NPG5BMQQ.js.map +0 -1
  42. package/dist/chunk-W2RRRG5O.mjs +0 -20
  43. package/dist/chunk-W2RRRG5O.mjs.map +0 -1
  44. /package/dist/{chunk-3XT5P2HO.js.map → chunk-4C666HHU.js.map} +0 -0
  45. /package/dist/{chunk-FKGPVTGA.mjs.map → chunk-66EUOAFS.mjs.map} +0 -0
  46. /package/dist/{chunk-HTAA47WA.mjs.map → chunk-HZWWJL43.mjs.map} +0 -0
  47. /package/dist/{chunk-4H6B66HI.js.map → chunk-UPRO35MO.js.map} +0 -0
package/package.json CHANGED
@@ -1,351 +1,351 @@
1
1
  {
2
- "name": "@visulima/api-platform",
3
- "version": "3.0.0",
4
- "description": "Visulima API platform is a set of tools to build and consume web APIs",
5
- "keywords": [
6
- "anolilab",
7
- "visulima",
8
- "react",
9
- "blitz",
10
- "blitzjs",
11
- "rate",
12
- "limit",
13
- "ratelimit",
14
- "rate-limit",
15
- "middleware",
16
- "ip",
17
- "auth",
18
- "authorization",
19
- "security",
20
- "brute",
21
- "force",
22
- "bruteforce",
23
- "brute-force",
24
- "attack",
25
- "accepts",
26
- "koa",
27
- "express",
28
- "hapi.js",
29
- "restify",
30
- "swagger",
31
- "openapi"
32
- ],
33
- "homepage": "https://www.visulima.com/docs/package/api-platform",
34
- "repository": {
35
- "type": "git",
36
- "url": "https://github.com/visulima/visulima.git",
37
- "directory": "packages/api-platform"
2
+ "name": "@visulima/api-platform",
3
+ "version": "3.0.1",
4
+ "description": "Visulima API platform is a set of tools to build and consume web APIs",
5
+ "keywords": [
6
+ "anolilab",
7
+ "visulima",
8
+ "react",
9
+ "blitz",
10
+ "blitzjs",
11
+ "rate",
12
+ "limit",
13
+ "ratelimit",
14
+ "rate-limit",
15
+ "middleware",
16
+ "ip",
17
+ "auth",
18
+ "authorization",
19
+ "security",
20
+ "brute",
21
+ "force",
22
+ "bruteforce",
23
+ "brute-force",
24
+ "attack",
25
+ "accepts",
26
+ "koa",
27
+ "express",
28
+ "hapi.js",
29
+ "restify",
30
+ "swagger",
31
+ "openapi"
32
+ ],
33
+ "homepage": "https://www.visulima.com/docs/package/api-platform",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/visulima/visulima.git",
37
+ "directory": "packages/api-platform"
38
+ },
39
+ "funding": [
40
+ {
41
+ "type": "github",
42
+ "url": "https://github.com/sponsors/prisis"
38
43
  },
39
- "funding": [
40
- {
41
- "type": "github",
42
- "url": "https://github.com/sponsors/prisis"
43
- },
44
- {
45
- "type": "consulting",
46
- "url": "https://anolilab.com/support"
47
- }
48
- ],
49
- "license": "MIT",
50
- "author": {
51
- "name": "Daniel Bannert",
52
- "email": "d.bannert@anolilab.de"
44
+ {
45
+ "type": "consulting",
46
+ "url": "https://anolilab.com/support"
47
+ }
48
+ ],
49
+ "license": "MIT",
50
+ "author": {
51
+ "name": "Daniel Bannert",
52
+ "email": "d.bannert@anolilab.de"
53
+ },
54
+ "sideEffects": false,
55
+ "exports": {
56
+ ".": {
57
+ "browser": "./dist/index-browser.js",
58
+ "require": {
59
+ "types": "./dist/index-server.d.ts",
60
+ "default": "./dist/index-server.js"
61
+ },
62
+ "import": {
63
+ "types": "./dist/index-server.d.mts",
64
+ "default": "./dist/index-server.mjs"
65
+ }
53
66
  },
54
- "sideEffects": false,
55
- "exports": {
56
- ".": {
57
- "browser": "./dist/index-browser.js",
58
- "require": {
59
- "types": "./dist/index-server.d.ts",
60
- "default": "./dist/index-server.js"
61
- },
62
- "import": {
63
- "types": "./dist/index-server.d.mts",
64
- "default": "./dist/index-server.mjs"
65
- }
66
- },
67
- "./next": {
68
- "browser": "./dist/framework/next/index-browser.js",
69
- "require": {
70
- "types": "./dist/framework/next/index-server.d.ts",
71
- "default": "./dist/framework/next/index-server.js"
72
- },
73
- "import": {
74
- "types": "./dist/framework/next/index-server.d.mts",
75
- "default": "./dist/framework/next/index-server.mjs"
76
- }
77
- },
78
- "./next/pages/swagger": {
79
- "browser": "./dist/framework/next/routes/pages/swagger/index.js",
80
- "require": {
81
- "types": "./dist/framework/next/routes/pages/swagger/index.d.ts",
82
- "default": "./dist/framework/next/routes/pages/swagger/index.js"
83
- },
84
- "import": {
85
- "types": "./dist/framework/next/routes/pages/swagger/index.d.mts",
86
- "default": "./dist/framework/next/routes/pages/swagger/index.mjs"
87
- }
88
- },
89
- "./next/pages/redoc": {
90
- "browser": "./dist/framework/next/routes/pages/redoc/index.js",
91
- "require": {
92
- "types": "./dist/framework/next/routes/pages/redoc/index.d.ts",
93
- "default": "./dist/framework/next/routes/pages/redoc/index.js"
94
- },
95
- "import": {
96
- "types": "./dist/framework/next/routes/pages/redoc/index.d.mts",
97
- "default": "./dist/framework/next/routes/pages/redoc/index.mjs"
98
- }
99
- },
100
- "./cli": {
101
- "require": {
102
- "types": "./dist/framework/cli/index.d.ts",
103
- "default": "./dist/framework/cli/index.js"
104
- },
105
- "import": {
106
- "types": "./dist/framework/cli/index.d.mts",
107
- "default": "./dist/framework/cli/index.mjs"
108
- }
109
- },
110
- "./package.json": "./package.json"
67
+ "./next": {
68
+ "browser": "./dist/framework/next/index-browser.js",
69
+ "require": {
70
+ "types": "./dist/framework/next/index-server.d.ts",
71
+ "default": "./dist/framework/next/index-server.js"
72
+ },
73
+ "import": {
74
+ "types": "./dist/framework/next/index-server.d.mts",
75
+ "default": "./dist/framework/next/index-server.mjs"
76
+ }
111
77
  },
112
- "main": "dist/index-server.js",
113
- "module": "dist/index-server.mjs",
114
- "browser": "dist/index-browser.mjs",
115
- "types": "dist/index-server.d.ts",
116
- "bin": {
117
- "api-platform": "./bin/index.js"
78
+ "./next/pages/swagger": {
79
+ "browser": "./dist/framework/next/routes/pages/swagger/index.js",
80
+ "require": {
81
+ "types": "./dist/framework/next/routes/pages/swagger/index.d.ts",
82
+ "default": "./dist/framework/next/routes/pages/swagger/index.js"
83
+ },
84
+ "import": {
85
+ "types": "./dist/framework/next/routes/pages/swagger/index.d.mts",
86
+ "default": "./dist/framework/next/routes/pages/swagger/index.mjs"
87
+ }
118
88
  },
119
- "files": [
120
- "bin/**",
121
- "dist/**",
122
- "recipes/**",
123
- "README.md",
124
- "CHANGELOG.md",
125
- "LICENSE.md"
126
- ],
127
- "scripts": {
128
- "build": "cross-env NODE_ENV=development tsup",
129
- "build:prod": "node ./scripts/wait.js && cross-env NODE_ENV=production tsup",
130
- "clean": "rimraf node_modules dist .eslintcache",
131
- "dev": "pnpm run build --watch",
132
- "lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.js",
133
- "lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.js --fix",
134
- "lint:packagejson": "publint --strict",
135
- "lint:prettier": "prettier --config=.prettierrc.js --check .",
136
- "lint:prettier:fix": "prettier --config=.prettierrc.js --write .",
137
- "lint:types": "tsc --noEmit --project tsconfig.json",
138
- "test": "vitest run",
139
- "test:coverage": "vitest run --coverage",
140
- "test:ui": "vitest --ui --coverage.enabled=true",
141
- "test:watch": "vitest"
89
+ "./next/pages/redoc": {
90
+ "browser": "./dist/framework/next/routes/pages/redoc/index.js",
91
+ "require": {
92
+ "types": "./dist/framework/next/routes/pages/redoc/index.d.ts",
93
+ "default": "./dist/framework/next/routes/pages/redoc/index.js"
94
+ },
95
+ "import": {
96
+ "types": "./dist/framework/next/routes/pages/redoc/index.d.mts",
97
+ "default": "./dist/framework/next/routes/pages/redoc/index.mjs"
98
+ }
142
99
  },
143
- "dependencies": {
144
- "@visulima/connect": "3.0.9",
145
- "@visulima/jsdoc-open-api": "2.0.42",
146
- "accepts": "^1.3.8",
147
- "debug": "^4.3.4",
148
- "http-errors": "^2.0.0",
149
- "http-status-codes": "^2.3.0",
150
- "jstoxml": "^5.0.1",
151
- "lodash.merge": "^4.6.2",
152
- "pathe": "^1.1.2",
153
- "schema-dts": "^1.1.2",
154
- "ts-japi": "^1.11.3",
155
- "yaml": "^2.4.2",
156
- "zod-to-ts": "^1.2.0"
100
+ "./cli": {
101
+ "require": {
102
+ "types": "./dist/framework/cli/index.d.ts",
103
+ "default": "./dist/framework/cli/index.js"
104
+ },
105
+ "import": {
106
+ "types": "./dist/framework/cli/index.d.mts",
107
+ "default": "./dist/framework/cli/index.mjs"
108
+ }
157
109
  },
158
- "devDependencies": {
159
- "@anolilab/eslint-config": "^15.0.3",
160
- "@anolilab/prettier-config": "^5.0.14",
161
- "@anolilab/semantic-release-preset": "^8.0.3",
162
- "@arthurgeron/eslint-plugin-react-usememo": "^2.4.0",
163
- "@babel/core": "^7.24.5",
164
- "@hapi/hapi": "^21.3.9",
165
- "@koa/router": "^12.0.1",
166
- "@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
167
- "@testing-library/react": "^15.0.7",
168
- "@total-typescript/ts-reset": "^0.5.1",
169
- "@types/accepts": "^1.3.7",
170
- "@types/cors": "^2.8.17",
171
- "@types/debug": "^4.1.12",
172
- "@types/express": "^4.17.21",
173
- "@types/express-serve-static-core": "^4.19.0",
174
- "@types/http-errors": "^2.0.4",
175
- "@types/jstoxml": "^2.0.4",
176
- "@types/koa": "^2.15.0",
177
- "@types/koa__router": "^12.0.4",
178
- "@types/lodash.merge": "^4.6.9",
179
- "@types/node": "18.18.14",
180
- "@types/qs": "^6.9.15",
181
- "@types/react": "^18.3.1",
182
- "@types/react-dom": "^18.3.0",
183
- "@types/swagger-ui-react": "^4.18.3",
184
- "@types/webpack": "^5.28.5",
185
- "@visulima/crud": "2.0.21",
186
- "@visulima/fs": "2.1.0",
187
- "@vitest/coverage-v8": "^1.6.0",
188
- "@vitest/ui": "^1.6.0",
189
- "chalk": "5.3.0",
190
- "commander": "^12.0.0",
191
- "core-js": "^3.37.0",
192
- "cors": "^2.8.5",
193
- "cross-env": "^7.0.3",
194
- "eslint": "^8.57.0",
195
- "eslint-plugin-deprecation": "^2.0.0",
196
- "eslint-plugin-etc": "^2.0.3",
197
- "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
198
- "eslint-plugin-jsx-a11y": "^6.8.0",
199
- "eslint-plugin-mdx": "^3.1.5",
200
- "eslint-plugin-react": "7.34.1",
201
- "eslint-plugin-react-hooks": "4.6.0",
202
- "eslint-plugin-ssr-friendly": "^1.3.0",
203
- "eslint-plugin-testing-library": "^6.2.2",
204
- "eslint-plugin-validate-jsx-nesting": "^0.1.1",
205
- "eslint-plugin-vitest": "^0.4.1",
206
- "eslint-plugin-vitest-globals": "^1.5.0",
207
- "eslint-plugin-zod": "^1.4.0",
208
- "express": "^4.19.2",
209
- "fastify": "^4.27.0",
210
- "koa": "^2.15.3",
211
- "mobx": "^6.12.3",
212
- "next": "^13.5.6",
213
- "next-test-api-route-handler": "^4.0.7",
214
- "node-mocks-http": "^1.14.1",
215
- "openapi-types": "^12.1.3",
216
- "prettier": "^3.2.5",
217
- "rate-limiter-flexible": "^5.0.3",
218
- "react": "^18.3.1",
219
- "react-dom": "^18.3.1",
220
- "redoc": "^2.1.4",
221
- "rimraf": "^5.0.5",
222
- "secretlint": "8.2.3",
223
- "semantic-release": "^23.0.8",
224
- "sort-package-json": "^2.10.0",
225
- "styled-components": "^6.1.9",
226
- "swagger-ui-dist": "^4.19.1",
227
- "swagger-ui-react": "^4.19.1",
228
- "tsup": "^8.0.2",
229
- "type-fest": "^4.18.2",
230
- "typescript": "^5.4.5",
231
- "vitest": "^1.6.0",
232
- "webpack": "^5.91.0",
233
- "zod": "^3.23.6"
110
+ "./package.json": "./package.json"
111
+ },
112
+ "main": "dist/index-server.js",
113
+ "module": "dist/index-server.mjs",
114
+ "browser": "dist/index-browser.mjs",
115
+ "types": "dist/index-server.d.ts",
116
+ "bin": {
117
+ "api-platform": "./bin/index.js"
118
+ },
119
+ "files": [
120
+ "bin/**",
121
+ "dist/**",
122
+ "recipes/**",
123
+ "README.md",
124
+ "CHANGELOG.md",
125
+ "LICENSE.md"
126
+ ],
127
+ "dependencies": {
128
+ "@visulima/connect": "3.0.10",
129
+ "@visulima/jsdoc-open-api": "2.0.43",
130
+ "accepts": "^1.3.8",
131
+ "debug": "^4.3.4",
132
+ "http-errors": "^2.0.0",
133
+ "http-status-codes": "^2.3.0",
134
+ "jstoxml": "^5.0.1",
135
+ "lodash.merge": "^4.6.2",
136
+ "pathe": "^1.1.2",
137
+ "schema-dts": "^1.1.2",
138
+ "ts-japi": "^1.11.4",
139
+ "yaml": "^2.4.2",
140
+ "zod-to-ts": "^1.2.0"
141
+ },
142
+ "devDependencies": {
143
+ "@anolilab/eslint-config": "^15.0.3",
144
+ "@anolilab/prettier-config": "^5.0.14",
145
+ "@anolilab/semantic-release-pnpm": "^1.1.0",
146
+ "@anolilab/semantic-release-preset": "^8.1.0",
147
+ "@arthurgeron/eslint-plugin-react-usememo": "^2.4.0",
148
+ "@babel/core": "^7.24.5",
149
+ "@hapi/hapi": "^21.3.9",
150
+ "@koa/router": "^12.0.1",
151
+ "@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
152
+ "@testing-library/react": "^15.0.7",
153
+ "@total-typescript/ts-reset": "^0.5.1",
154
+ "@types/accepts": "^1.3.7",
155
+ "@types/cors": "^2.8.17",
156
+ "@types/debug": "^4.1.12",
157
+ "@types/express": "^4.17.21",
158
+ "@types/express-serve-static-core": "^4.19.1",
159
+ "@types/http-errors": "^2.0.4",
160
+ "@types/jstoxml": "^2.0.4",
161
+ "@types/koa": "^2.15.0",
162
+ "@types/koa__router": "^12.0.4",
163
+ "@types/lodash.merge": "^4.6.9",
164
+ "@types/node": "18.18.14",
165
+ "@types/qs": "^6.9.15",
166
+ "@types/react": "^18.3.2",
167
+ "@types/react-dom": "^18.3.0",
168
+ "@types/swagger-ui-react": "^4.18.3",
169
+ "@types/webpack": "^5.28.5",
170
+ "@visulima/crud": "2.0.21",
171
+ "@visulima/fs": "2.1.1",
172
+ "@vitest/coverage-v8": "^1.6.0",
173
+ "@vitest/ui": "^1.6.0",
174
+ "chalk": "5.3.0",
175
+ "commander": "^12.1.0",
176
+ "core-js": "^3.37.1",
177
+ "cors": "^2.8.5",
178
+ "cross-env": "^7.0.3",
179
+ "eslint": "^8.57.0",
180
+ "eslint-plugin-deprecation": "^2.0.0",
181
+ "eslint-plugin-etc": "^2.0.3",
182
+ "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
183
+ "eslint-plugin-jsx-a11y": "^6.8.0",
184
+ "eslint-plugin-mdx": "^3.1.5",
185
+ "eslint-plugin-react": "7.34.1",
186
+ "eslint-plugin-react-hooks": "4.6.0",
187
+ "eslint-plugin-ssr-friendly": "^1.3.0",
188
+ "eslint-plugin-testing-library": "^6.2.2",
189
+ "eslint-plugin-validate-jsx-nesting": "^0.1.1",
190
+ "eslint-plugin-vitest": "^0.4.1",
191
+ "eslint-plugin-vitest-globals": "^1.5.0",
192
+ "eslint-plugin-zod": "^1.4.0",
193
+ "express": "^4.19.2",
194
+ "fastify": "^4.27.0",
195
+ "koa": "^2.15.3",
196
+ "mobx": "^6.12.3",
197
+ "next": "^13.5.6",
198
+ "next-test-api-route-handler": "^4.0.7",
199
+ "node-mocks-http": "^1.14.1",
200
+ "openapi-types": "^12.1.3",
201
+ "prettier": "^3.2.5",
202
+ "rate-limiter-flexible": "^5.0.3",
203
+ "react": "^18.3.1",
204
+ "react-dom": "^18.3.1",
205
+ "redoc": "^2.1.4",
206
+ "rimraf": "^5.0.7",
207
+ "secretlint": "8.2.3",
208
+ "semantic-release": "^23.1.1",
209
+ "styled-components": "^6.1.11",
210
+ "swagger-ui-dist": "^4.19.1",
211
+ "swagger-ui-react": "^4.19.1",
212
+ "tsup": "^8.0.2",
213
+ "type-fest": "^4.18.2",
214
+ "typescript": "^5.4.5",
215
+ "vitest": "^1.6.0",
216
+ "webpack": "^5.91.0",
217
+ "zod": "^3.23.8"
218
+ },
219
+ "peerDependencies": {
220
+ "@hapi/hapi": "^21.3.9",
221
+ "@koa/router": "^12.0.1",
222
+ "@visulima/crud": "2.0.21",
223
+ "@visulima/readdir": "2.0.12",
224
+ "chalk": "5.3.0",
225
+ "commander": "^12.0.0",
226
+ "cors": "^2.8.5",
227
+ "express": "^4.19.2",
228
+ "fastify": "^4.27.0",
229
+ "koa": "^2.15.3",
230
+ "next": "^13.5.6",
231
+ "rate-limiter-flexible": "^5.0.3",
232
+ "react": "^18.2.0",
233
+ "react-dom": "^18.2.0",
234
+ "redoc": "^2.1.4",
235
+ "swagger-ui-dist": "^4.19.1",
236
+ "swagger-ui-react": "^4.19.1",
237
+ "webpack": "^5.91.0",
238
+ "zod": "^3.22.4"
239
+ },
240
+ "peerDependenciesMeta": {
241
+ "@hapi/hapi": {
242
+ "optional": true
234
243
  },
235
- "peerDependencies": {
236
- "@hapi/hapi": "^21.3.9",
237
- "@koa/router": "^12.0.1",
238
- "@visulima/crud": "2.0.21",
239
- "@visulima/readdir": "2.0.12",
240
- "chalk": "5.3.0",
241
- "commander": "^12.0.0",
242
- "cors": "^2.8.5",
243
- "express": "^4.19.2",
244
- "fastify": "^4.27.0",
245
- "koa": "^2.15.3",
246
- "next": "^13.5.6",
247
- "rate-limiter-flexible": "^5.0.3",
248
- "react": "^18.2.0",
249
- "react-dom": "^18.2.0",
250
- "redoc": "^2.1.4",
251
- "swagger-ui-dist": "^4.19.1",
252
- "swagger-ui-react": "^4.19.1",
253
- "webpack": "^5.91.0",
254
- "zod": "^3.22.4"
244
+ "@koa/router": {
245
+ "optional": true
255
246
  },
256
- "peerDependenciesMeta": {
257
- "@hapi/hapi": {
258
- "optional": true
259
- },
260
- "@koa/router": {
261
- "optional": true
262
- },
263
- "@visulima/crud": {
264
- "optional": true
265
- },
266
- "@visulima/readdir": {
267
- "optional": true
268
- },
269
- "chalk": {
270
- "optional": true
271
- },
272
- "commander": {
273
- "optional": true
274
- },
275
- "cors": {
276
- "optional": true
277
- },
278
- "express": {
279
- "optional": true
280
- },
281
- "fastify": {
282
- "optional": true
283
- },
284
- "koa": {
285
- "optional": true
286
- },
287
- "next": {
288
- "optional": true
289
- },
290
- "rate-limiter-flexible": {
291
- "optional": true
292
- },
293
- "react": {
294
- "optional": true
295
- },
296
- "react-dom": {
297
- "optional": true
298
- },
299
- "redoc": {
300
- "optional": true
301
- },
302
- "swagger-ui-dist": {
303
- "optional": true
304
- },
305
- "swagger-ui-react": {
306
- "optional": true
307
- },
308
- "webpack": {
309
- "optional": true
310
- },
311
- "zod": {
312
- "optional": true
313
- }
247
+ "@visulima/crud": {
248
+ "optional": true
314
249
  },
315
- "engines": {
316
- "node": ">=18.* <=21.*"
250
+ "@visulima/readdir": {
251
+ "optional": true
317
252
  },
318
- "os": [
319
- "darwin",
320
- "linux",
321
- "win32"
322
- ],
323
- "publishConfig": {
324
- "access": "public",
325
- "provenance": true
253
+ "chalk": {
254
+ "optional": true
326
255
  },
327
- "anolilab": {
328
- "eslint-config": {
329
- "plugin": {
330
- "tsdoc": false,
331
- "testing-library-dom": false
332
- },
333
- "warn_on_unsupported_typescript_version": false,
334
- "info_on_disabling_jsx_react_rule": false,
335
- "info_on_disabling_prettier_conflict_rule": false,
336
- "info_on_disabling_jsonc_sort_keys_rule": false,
337
- "info_on_testing_library_framework": false,
338
- "info_on_disabling_etc_no_deprecated": false
339
- }
256
+ "commander": {
257
+ "optional": true
340
258
  },
341
- "sources": [
342
- "src/index-browser.tsx",
343
- "src/index-server.ts",
344
- "src/framework/cli/index.ts",
345
- "src/framework/cli/commander/index.ts",
346
- "src/framework/next/index-browser.tsx",
347
- "src/framework/next/index-server.ts",
348
- "src/framework/next/routes/pages/swagger/index.tsx",
349
- "src/framework/next/routes/pages/redoc/index.tsx"
350
- ]
351
- }
259
+ "cors": {
260
+ "optional": true
261
+ },
262
+ "express": {
263
+ "optional": true
264
+ },
265
+ "fastify": {
266
+ "optional": true
267
+ },
268
+ "koa": {
269
+ "optional": true
270
+ },
271
+ "next": {
272
+ "optional": true
273
+ },
274
+ "rate-limiter-flexible": {
275
+ "optional": true
276
+ },
277
+ "react": {
278
+ "optional": true
279
+ },
280
+ "react-dom": {
281
+ "optional": true
282
+ },
283
+ "redoc": {
284
+ "optional": true
285
+ },
286
+ "swagger-ui-dist": {
287
+ "optional": true
288
+ },
289
+ "swagger-ui-react": {
290
+ "optional": true
291
+ },
292
+ "webpack": {
293
+ "optional": true
294
+ },
295
+ "zod": {
296
+ "optional": true
297
+ }
298
+ },
299
+ "engines": {
300
+ "node": ">=18.* <=21.*"
301
+ },
302
+ "os": [
303
+ "darwin",
304
+ "linux",
305
+ "win32"
306
+ ],
307
+ "publishConfig": {
308
+ "access": "public",
309
+ "provenance": true
310
+ },
311
+ "anolilab": {
312
+ "eslint-config": {
313
+ "plugin": {
314
+ "tsdoc": false,
315
+ "testing-library-dom": false
316
+ },
317
+ "warn_on_unsupported_typescript_version": false,
318
+ "info_on_disabling_jsx_react_rule": false,
319
+ "info_on_disabling_prettier_conflict_rule": false,
320
+ "info_on_disabling_jsonc_sort_keys_rule": false,
321
+ "info_on_testing_library_framework": false,
322
+ "info_on_disabling_etc_no_deprecated": false
323
+ }
324
+ },
325
+ "sources": [
326
+ "src/index-browser.tsx",
327
+ "src/index-server.ts",
328
+ "src/framework/cli/index.ts",
329
+ "src/framework/cli/commander/index.ts",
330
+ "src/framework/next/index-browser.tsx",
331
+ "src/framework/next/index-server.ts",
332
+ "src/framework/next/routes/pages/swagger/index.tsx",
333
+ "src/framework/next/routes/pages/redoc/index.tsx"
334
+ ],
335
+ "scripts": {
336
+ "build": "cross-env NODE_ENV=development tsup",
337
+ "build:prod": "node ./scripts/wait.js && cross-env NODE_ENV=production tsup",
338
+ "clean": "rimraf node_modules dist .eslintcache",
339
+ "dev": "pnpm run build --watch",
340
+ "lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.js",
341
+ "lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.js --fix",
342
+ "lint:package-json": "publint --strict",
343
+ "lint:prettier": "prettier --config=.prettierrc.js --check .",
344
+ "lint:prettier:fix": "prettier --config=.prettierrc.js --write .",
345
+ "lint:types": "tsc --noEmit --project tsconfig.json",
346
+ "test": "vitest run",
347
+ "test:coverage": "vitest run --coverage",
348
+ "test:ui": "vitest --ui --coverage.enabled=true",
349
+ "test:watch": "vitest"
350
+ }
351
+ }