@dudousxd/nestjs-codegen 0.14.0 → 0.14.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.
- package/CHANGELOG.md +10 -0
- package/dist/cli/main.cjs +2 -2
- package/dist/cli/main.cjs.map +1 -1
- package/dist/cli/main.js +2 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/extension/index.cjs +1 -1
- package/dist/extension/index.cjs.map +1 -1
- package/dist/extension/index.js +1 -1
- package/dist/extension/index.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/nest/index.cjs +2 -2
- package/dist/nest/index.cjs.map +1 -1
- package/dist/nest/index.js +2 -2
- package/dist/nest/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @dudousxd/nestjs-codegen
|
|
2
2
|
|
|
3
|
+
## 0.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 093f3d5: A bare `@UploadedFile()` route (no `@Body()` DTO) now emits a working multipart leaf.
|
|
8
|
+
`requestShape().hasBody` ignored `multipart`, so while the ApiRouter TYPE promised
|
|
9
|
+
`body: { file: File | Blob }` (the multipart intersection), the generated call accepted no
|
|
10
|
+
body and sent no file. `multipart` now implies a body; routes with a `@Body()` DTO were
|
|
11
|
+
already correct.
|
|
12
|
+
|
|
3
13
|
## 0.14.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/dist/cli/main.cjs
CHANGED
|
@@ -642,7 +642,7 @@ function requestShape(route) {
|
|
|
642
642
|
const cs = route.contract?.contractSource;
|
|
643
643
|
const isGet = route.method.toUpperCase() === "GET";
|
|
644
644
|
const isQuery = isGet || !!cs?.filterFields?.length || !!cs?.asQuery;
|
|
645
|
-
const hasBody = !!cs?.bodyRef || cs?.body != null && cs.body !== "never";
|
|
645
|
+
const hasBody = !!cs?.bodyRef || cs?.body != null && cs.body !== "never" || !!cs?.multipart;
|
|
646
646
|
const hasQuery = isGet || !!cs?.queryRef || cs?.query != null && cs.query !== "never";
|
|
647
647
|
return { isGet, isQuery, hasBody, hasQuery };
|
|
648
648
|
}
|
|
@@ -4801,7 +4801,7 @@ async function watch(config, onChange, options = {}) {
|
|
|
4801
4801
|
}
|
|
4802
4802
|
|
|
4803
4803
|
// src/index.ts
|
|
4804
|
-
var VERSION = "0.14.
|
|
4804
|
+
var VERSION = "0.14.1";
|
|
4805
4805
|
|
|
4806
4806
|
// src/cli/codegen.ts
|
|
4807
4807
|
async function runCodegen(opts = {}) {
|