Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "nestia", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Automatic SDK and Document generator for the NestJS", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -16,7 +16,10 @@ import * as fs from "fs"; | ||
{ | ||
// CONSTRUCT FOLDER TREE | ||
const root: Directory = new Directory(null, "functional"); | ||
for (const route of routeList) | ||
emplace(root, route); | ||
remix(root); | ||
// RELOCATE FOR ONLY ONE CONTROLLER METHOD IN AN URL CASE | ||
relocate(root); | ||
const defaultImportDict: ImportDictionary = new ImportDictionary(); | ||
@@ -50,5 +53,8 @@ defaultImportDict.emplace(`${outDir}/__internal/AesPkcs5.ts`, true, "AesPkcs5"); | ||
function remix(directory: Directory): void | ||
function relocate(directory: Directory): void | ||
{ | ||
if (directory.parent !== null && directory.directories.empty() && directory.routes.length === 1) | ||
if (directory.parent !== null | ||
&& directory.directories.empty() | ||
&& directory.routes.length === 1 | ||
&& directory.name === directory.routes[0].name) | ||
{ | ||
@@ -60,3 +66,3 @@ directory.parent.routes.push(directory.routes[0]); | ||
for (const it of directory.directories) | ||
remix(it.second); | ||
relocate(it.second); | ||
} | ||
@@ -63,0 +69,0 @@ |
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
55874
1233