Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nestia

Package Overview
Dependencies
Maintainers
1
Versions
223
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.1 to 0.2.2

2

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

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

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

"connection",
JSON.stringify(config),
JSON.stringify(config, null, 4)
.split('"').join("")
.split("\n").join("\n" + " ".repeat(8)),
`"${route.method}"`,

@@ -119,3 +121,6 @@ path

// REFORM PARAMETERS TEXT
const parameters: string = route.parameters.map(param =>
const parameters: string[] =
[
"connection: IConnection",
...route.parameters.map(param =>
{

@@ -126,3 +131,4 @@ const type: string = (param === query || param === input)

return `${param.name}: ${type}`;
}).join(", ");
})
];

@@ -139,3 +145,6 @@ // OUTPUT TYPE

+ " */\n"
+ `export function ${route.name}(connection: IConnection, ${parameters}): Promise<${output}>\n`
+ `export function ${route.name}\n`
+ ` (\n`
+ `${parameters.map(str => ` ${str}`).join(",\n")}\n`
+ ` ): Promise<${output}>\n`
+ "{";

@@ -142,0 +151,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