Socket
Socket
Sign inDemoInstall

nestia

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestia - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc