@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/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.
|
|
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.
|
|
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.
|
|
4876
|
+
var VERSION = "0.14.1";
|
|
4877
4877
|
export {
|
|
4878
4878
|
CodegenError,
|
|
4879
4879
|
ConfigError,
|