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.3.3 to 0.3.4

2

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

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

@@ -23,3 +23,10 @@ /**

public static async fetch<Output>(connection: IConnection, config: Fetcher.IConfig, method: string, path: string, input?: object): Promise<Primitive<Output>>
public static async fetch<Output>
(
connection: IConnection,
config: Fetcher.IConfig,
method: string,
path: string,
input?: object
): Promise<Primitive<Output>>
{

@@ -61,7 +68,6 @@ if (config.input_encrypted === true || config.output_encrypted === true)

//----
// NORMALIZE PATH
if (path !== "" && path[0] !== "/")
path = `/${path}`;
// DO FETCH
if (connection.enforcePath)
path = connection.enforcePath;
// DO FETCH
const response: Response = await fetch(`${connection.host}${path}`, init);

@@ -68,0 +74,0 @@ let content: string = await response.text();

@@ -11,2 +11,3 @@ /**

encryption?: IConnection.IEncyptionPassword | IConnection.EncryptionClosure;
enforcePath?: string;
}

@@ -13,0 +14,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