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.2.0 to 0.2.1

2

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

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

@@ -74,3 +74,3 @@ import type * as tsc from "typescript";

// MAIN DESCRIPTION
let comment: string = route.comments.map(comment => comment.text).join("\n\n");
let comment: string = route.comments.map(comment => `${comment.kind === "linkText" ? " " : ""}${comment.text}`).join("");
if (comment !== "")

@@ -80,25 +80,22 @@ comment += "\n\n";

// FILTER TAGS (VULNERABLE PARAMETERS WOULD BE REMOVED)
const tags: tsc.JSDocTagInfo[] = route.tags.filter(tag =>
const tagList: tsc.JSDocTagInfo[] = route.tags.filter(tag => tag.text !== undefined);
if (tagList.length !== 0)
{
if (tag.name === "param")
{
if (tag.text === undefined)
return false;
const variable: string = tag.text![0].text.split(" ")[0];
return route.parameters.find(param => variable === param.name) !== undefined;
}
return true;
});
if (tags.length !== 0)
{
const index: number = tags.findIndex(t => t.name === "param");
const index: number = tagList.findIndex(t => t.name === "param");
if (index !== -1)
{
const capsule: Vector<tsc.JSDocTagInfo> = Vector.wrap(tags);
const capsule: Vector<tsc.JSDocTagInfo> = Vector.wrap(tagList);
capsule.insert(capsule.nth(index), {
name: "param",
text: [
{
kind: "parameterName",
text: "connection"
},
{
kind: "space",
text: " "
},
{
kind: "xxx",
kind: "text",
text: "connection Information of the remote HTTP(s) server with headers (+encryption password)"

@@ -109,3 +106,5 @@ }

}
comment += tags.map(t => `@${t.name} ${t.text ? t.text : ""}`).join("\n") + "\n\n";
comment += tagList
.map(tag => `@${tag.name} ${tag.text!.map(elem => elem.text).join("")}`)
.join("\n") + "\n\n";
}

@@ -112,0 +111,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