@nestjs/swagger
Advanced tools
Comparing version 4.1.12 to 4.1.13
@@ -16,3 +16,3 @@ "use strict"; | ||
if (!elementType) { | ||
return undefined; | ||
return `undefined`; | ||
} | ||
@@ -43,3 +43,12 @@ return `[${elementType}]`; | ||
const text = ast_utils_1.getText(type, typeChecker); | ||
return text === Date.name ? text : undefined; | ||
if (text === Date.name) { | ||
return text; | ||
} | ||
if (text === 'any' || | ||
text === 'unknown' || | ||
text === 'object' || | ||
ast_utils_1.isInterface(type)) { | ||
return 'Object'; | ||
} | ||
return undefined; | ||
} | ||
@@ -46,0 +55,0 @@ catch (_a) { |
{ | ||
"name": "@nestjs/swagger", | ||
"version": "4.1.12", | ||
"version": "4.1.13", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@swagger)", | ||
@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec", |
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
159071
3071