Skip to content

Commit 28cc2b1

Browse files
author
Sefi Krausz
committed
changes to axios target
1 parent f33ce57 commit 28cc2b1

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎src/targets/node/axios.js‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,15 @@ module.exports = function (source, options) {
3535
url: `${source.url}`,
3636
};
3737

38-
code.push(`axios(
39-
${JSON.stringify(requestOptions)}
40-
)`)
38+
code.push(`axios(${
39+
JSON.stringify(requestOptions)
40+
})`)
4141
.blank()
42-
.push(`.then(
43-
(response)=>{
42+
.push(`.then((response)=>{
4443
console.log(response)
4544
})`)
4645
.blank()
47-
.push(`.catch(
48-
(error)=>{
46+
.push(`.catch((error)=>{
4947
console.log(error)
5048
})`)
5149
.blank()

0 commit comments

Comments
 (0)