"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "helpers/codegen/generators/nodejs-axios.js" between
hoppscotch-2.0.0.tar.gz and hoppscotch-2.1.0.tar.gz

About: Hoppscotch is a light-weight, web based API development suite.

nodejs-axios.js  (hoppscotch-2.0.0):nodejs-axios.js  (hoppscotch-2.1.0)
skipping to change at line 25 skipping to change at line 25
rawParams, rawParams,
rawRequestBody, rawRequestBody,
contentType, contentType,
headers, headers,
}) => { }) => {
const requestString = [] const requestString = []
const genHeaders = [] const genHeaders = []
const requestBody = rawInput ? rawParams : rawRequestBody const requestBody = rawInput ? rawParams : rawRequestBody
requestString.push( requestString.push(
`axios.${method.toLowerCase()}('${url}${pathName}${queryString}'` `axios.${method.toLowerCase()}('${url}${pathName}?${queryString}'`
) )
if (requestBody.length !== 0) { if (requestBody.length !== 0) {
requestString.push(", ") requestString.push(", ")
} }
if (headers) { if (headers) {
headers.forEach(({ key, value }) => { headers.forEach(({ key, value }) => {
if (key) genHeaders.push(` "${key}": "${value}",\n`) if (key) genHeaders.push(` "${key}": "${value}",\n`)
}) })
} }
if (contentType) { if (contentType) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)