Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "nestia", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Automatic SDK and Document generator for the NestJS", | ||
@@ -11,3 +11,4 @@ "main": "src/index.ts", | ||
"dev": "tsc --watch", | ||
"test": "cd test && bash script.sh" | ||
"test": "cd test && bash script.sh", | ||
"test:default": "cd test/default && rimraf -rf src/api/functional && ts-node ../../src/bin/nestia sdk src/controllers --out src/api" | ||
}, | ||
@@ -43,4 +44,5 @@ "repository": { | ||
"devDependencies": { | ||
"encrypted-nestjs": "^0.1.5" | ||
"encrypted-nestjs": "^0.1.5", | ||
"rimraf": "^3.0.2" | ||
} | ||
} |
@@ -55,3 +55,3 @@ import * as NodePath from "path"; | ||
continue; | ||
// ANALYZED WITH THE REFLECTED-FUNCTION | ||
@@ -139,3 +139,2 @@ const func: IController.IFunction | undefined = controller.functions.find(f => f.name === identifier.escapedText); | ||
const type: tsc.Type = checker.getTypeOfSymbolAtLocation(symbol, declaration); | ||
const name: string = symbol.getEscapedName().toString(); | ||
@@ -142,0 +141,0 @@ |
@@ -44,3 +44,3 @@ import * as tsc from "typescript"; | ||
// PRIMITIVE | ||
const symbol: tsc.Symbol | undefined = type.getSymbol(); | ||
const symbol: tsc.Symbol | undefined = type.getSymbol() || type.aliasSymbol; | ||
if (symbol === undefined) | ||
@@ -50,3 +50,3 @@ return checker.typeToString(type, undefined, undefined); | ||
// UNION OR INTERSECT | ||
else if (type.isUnionOrIntersection()) | ||
else if (type.aliasSymbol === undefined && type.isUnionOrIntersection()) | ||
{ | ||
@@ -53,0 +53,0 @@ const joiner: string = type.isIntersection() ? " & " : " | "; |
@@ -76,3 +76,8 @@ { | ||
}, | ||
// "include": ["src", "test"] | ||
"include": [ | ||
"src", | ||
"test/default/src", | ||
"test/nestia.config.ts/src", | ||
// "test/tsconfig.json/src" | ||
] | ||
} |
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
79402
1577
2