openapi-gen-typescript
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -268,3 +268,3 @@ "use strict"; | ||
}, otherOptions?: any): Promise<{ body: ${responseTypeNames.length > 0 ? responseTypeNames.join('|') : 'any'} }> => { | ||
let resolvedUrl = '${baseUrl}${urlPath}'; | ||
let resolvedUrl = '${(baseUrl + urlPath).replace('//', '/')}'; | ||
${_.isEmpty(requestPath) | ||
@@ -286,3 +286,3 @@ ? '' | ||
`; | ||
const requestUrl = `export const url = \`${baseUrl}${urlPath}\``; | ||
const requestUrl = `export const url = \`${(baseUrl + urlPath).replace('//', '/')}\``; | ||
let exportObj = { | ||
@@ -289,0 +289,0 @@ requestUrl, |
{ | ||
"name": "openapi-gen-typescript", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -388,3 +388,3 @@ // @ts-ignore | ||
} }> => { | ||
let resolvedUrl = '${baseUrl}${urlPath}'; | ||
let resolvedUrl = '${(baseUrl + urlPath).replace('//', '/')}'; | ||
${ | ||
@@ -409,3 +409,3 @@ _.isEmpty(requestPath) | ||
const requestUrl = `export const url = \`${baseUrl}${urlPath}\``; | ||
const requestUrl = `export const url = \`${(baseUrl + urlPath).replace('//', '/')}\``; | ||
@@ -412,0 +412,0 @@ let exportObj: { [key: string]: string } = { |
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
70741