Comparing version 0.3.3 to 0.3.4
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79511
1584