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.3 to 0.1.4

2

package.json
{
"name": "nestia",
"version": "0.1.3",
"version": "0.1.4",
"description": "Automatic SDK and Document generator for the NestJS",

@@ -5,0 +5,0 @@ "main": "src/index.ts",

@@ -16,5 +16,6 @@ import * as fs from "fs";

{
const root: Directory = new Directory("functional");
const root: Directory = new Directory(null, "functional");
for (const route of routeList)
emplace(root, route);
remix(root);

@@ -41,3 +42,3 @@ const defaultImportDict: ImportDictionary = new ImportDictionary();

if (it.equals(directory.directories.end()) === true)
it = directory.directories.emplace(key, new Directory(key)).first;
it = directory.directories.emplace(key, new Directory(directory, key)).first;

@@ -50,2 +51,14 @@ // FOR THE NEXT STEP

function remix(directory: Directory): void
{
if (directory.parent !== null && directory.directories.empty() && directory.routes.length === 1)
{
directory.parent.routes.push(directory.routes[0]);
directory.parent.directories.erase(directory.name);
}
else if (directory.directories.empty() === false)
for (const it of directory.directories)
remix(it.second);
}
/* ---------------------------------------------------------

@@ -96,3 +109,3 @@ FILE ITERATOR

public constructor(readonly name: string)
public constructor(readonly parent: Directory | null, readonly name: string)
{

@@ -99,0 +112,0 @@ this.directories = new HashMap();

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