Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "nestia", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Automatic SDK and Document generator for the NestJS", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -116,10 +116,15 @@ import * as path from "path"; | ||
// PARSE CHILDREN DATA | ||
const nestParameters: NestParameters = Reflect.getMetadata("__routeArguments__", classProto.constructor, name); | ||
for (const tuple of Object.entries(nestParameters)) | ||
const nestParameters: NestParameters | undefined = Reflect.getMetadata("__routeArguments__", classProto.constructor, name); | ||
if (nestParameters === undefined) | ||
meta.parameters = []; | ||
else | ||
{ | ||
const child: IController.IParameter | null = _Analyze_parameter(...tuple); | ||
if (child !== null) | ||
meta.parameters.push(child); | ||
for (const tuple of Object.entries(nestParameters)) | ||
{ | ||
const child: IController.IParameter | null = _Analyze_parameter(...tuple); | ||
if (child !== null) | ||
meta.parameters.push(child); | ||
} | ||
meta.parameters = meta.parameters.sort((x, y) => x.index - y.index); | ||
} | ||
meta.parameters = meta.parameters.sort((x, y) => x.index - y.index); | ||
@@ -126,0 +131,0 @@ // VALIDATE PATH ARGUMENTS |
@@ -19,3 +19,2 @@ #!/usr/bin/env ts-node-script | ||
{ | ||
// VALIDATE OUTPUT | ||
@@ -22,0 +21,0 @@ if (command.out === null) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55153
1216