@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/dist/cli/main.js
CHANGED
|
@@ -608,7 +608,7 @@ function requestShape(route) {
|
|
|
608
608
|
const cs = route.contract?.contractSource;
|
|
609
609
|
const isGet = route.method.toUpperCase() === "GET";
|
|
610
610
|
const isQuery = isGet || !!cs?.filterFields?.length || !!cs?.asQuery;
|
|
611
|
-
const hasBody = !!cs?.bodyRef || cs?.body != null && cs.body !== "never";
|
|
611
|
+
const hasBody = !!cs?.bodyRef || cs?.body != null && cs.body !== "never" || !!cs?.multipart;
|
|
612
612
|
const hasQuery = isGet || !!cs?.queryRef || cs?.query != null && cs.query !== "never";
|
|
613
613
|
return { isGet, isQuery, hasBody, hasQuery };
|
|
614
614
|
}
|
|
@@ -4782,7 +4782,7 @@ async function watch(config, onChange, options = {}) {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
|
|
4784
4784
|
// src/index.ts
|
|
4785
|
-
var VERSION = "0.14.
|
|
4785
|
+
var VERSION = "0.14.1";
|
|
4786
4786
|
|
|
4787
4787
|
// src/cli/codegen.ts
|
|
4788
4788
|
async function runCodegen(opts = {}) {
|