@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/dist/index.d.cts CHANGED
@@ -367,6 +367,6 @@ interface FastDiscoveryOptions {
367
367
  }
368
368
  declare function discoverContractsFast(opts: FastDiscoveryOptions): Promise<RouteDescriptor[]>;
369
369
 
370
- declare const VERSION = "0.14.0";
370
+ declare const VERSION = "0.14.1";
371
371
 
372
372
  export { type ChainModuleRendererOptions, CodegenError, type CodegenManifest, ConfigError, DriftGuardError, type EntryPoint, type FastDiscoveryOptions, type JsonSchema, type MocksEmitOptions, type OpenApiDocument, type OpenApiEmitOptions, type OpenApiInfo, RenderContext, RenderedModule, ResolvedConfig, RouteDescriptor, SchemaModule, SchemaNode, type TsTypeContext, UserConfig, VERSION, ValidationAdapter, type WatchOptions, type Watcher, acquireLock, buildMocksFile, buildOpenApiSpec, createChainModuleRenderer, defineConfig, discoverContractsFast, emitApi, emitForms, emitMocks, emitOpenApi, emitRoutes, extractSchemaFromDto, generate, loadConfig, renderTsType, resolveConfig, schemaModuleToJsonSchema, schemaNodeToJsonSchema, toObjectKey, typeNameFor, watch };
package/dist/index.d.ts CHANGED
@@ -367,6 +367,6 @@ interface FastDiscoveryOptions {
367
367
  }
368
368
  declare function discoverContractsFast(opts: FastDiscoveryOptions): Promise<RouteDescriptor[]>;
369
369
 
370
- declare const VERSION = "0.14.0";
370
+ declare const VERSION = "0.14.1";
371
371
 
372
372
  export { type ChainModuleRendererOptions, CodegenError, type CodegenManifest, ConfigError, DriftGuardError, type EntryPoint, type FastDiscoveryOptions, type JsonSchema, type MocksEmitOptions, type OpenApiDocument, type OpenApiEmitOptions, type OpenApiInfo, RenderContext, RenderedModule, ResolvedConfig, RouteDescriptor, SchemaModule, SchemaNode, type TsTypeContext, UserConfig, VERSION, ValidationAdapter, type WatchOptions, type Watcher, acquireLock, buildMocksFile, buildOpenApiSpec, createChainModuleRenderer, defineConfig, discoverContractsFast, emitApi, emitForms, emitMocks, emitOpenApi, emitRoutes, extractSchemaFromDto, generate, loadConfig, renderTsType, resolveConfig, schemaModuleToJsonSchema, schemaNodeToJsonSchema, toObjectKey, typeNameFor, watch };
package/dist/index.js CHANGED
@@ -613,7 +613,7 @@ function requestShape(route) {
613
613
  const cs = route.contract?.contractSource;
614
614
  const isGet = route.method.toUpperCase() === "GET";
615
615
  const isQuery = isGet || !!cs?.filterFields?.length || !!cs?.asQuery;
616
- const hasBody = !!cs?.bodyRef || cs?.body != null && cs.body !== "never";
616
+ const hasBody = !!cs?.bodyRef || cs?.body != null && cs.body !== "never" || !!cs?.multipart;
617
617
  const hasQuery = isGet || !!cs?.queryRef || cs?.query != null && cs.query !== "never";
618
618
  return { isGet, isQuery, hasBody, hasQuery };
619
619
  }
@@ -4873,7 +4873,7 @@ function createChainModuleRenderer(opts) {
4873
4873
  }
4874
4874
 
4875
4875
  // src/index.ts
4876
- var VERSION = "0.14.0";
4876
+ var VERSION = "0.14.1";
4877
4877
  export {
4878
4878
  CodegenError,
4879
4879
  ConfigError,