"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "helpers/codegen/generators/shell-wget.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.

shell-wget.js  (hoppscotch-2.0.0):shell-wget.js  (hoppscotch-2.1.0)
skipping to change at line 22 skipping to change at line 22
bearerToken, bearerToken,
method, method,
rawInput, rawInput,
rawParams, rawParams,
rawRequestBody, rawRequestBody,
contentType, contentType,
headers, headers,
}) => { }) => {
const requestString = [] const requestString = []
requestString.push(`wget -O - --method=${method}`) requestString.push(`wget -O - --method=${method}`)
requestString.push(` '${url}${pathName}${queryString}'`) requestString.push(` '${url}${pathName}?${queryString}'`)
if (auth === "Basic Auth") { if (auth === "Basic Auth") {
const basic = `${httpUser}:${httpPassword}` const basic = `${httpUser}:${httpPassword}`
requestString.push( requestString.push(
` --header='Authorization: Basic ${window.btoa( ` --header='Authorization: Basic ${window.btoa(
unescape(encodeURIComponent(basic)) unescape(encodeURIComponent(basic))
)}'` )}'`
) )
} else if (auth === "Bearer Token" || auth === "OAuth 2.0") { } else if (auth === "Bearer Token" || auth === "OAuth 2.0") {
requestString.push(` --header='Authorization: Bearer ${bearerToken}'`) requestString.push(` --header='Authorization: Bearer ${bearerToken}'`)
} }
 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)