Skip to content

Commit d80813f

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

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

‎src/targets/node/axios.js‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,19 @@ module.exports = function (source, options) {
3737

3838
code.push(`axios(${
3939
JSON.stringify(requestOptions)
40+
})
41+
.then((response)=>{
42+
console.log(response)
43+
})
44+
.catch((error)=>{
45+
console.log(error)
4046
})`)
41-
.blank()
42-
.push(`.then((response)=>{
43-
console.log(response)
44-
})`)
45-
.blank()
46-
.push(`.catch((error)=>{
47-
console.log(error)
48-
})`)
49-
.blank()
47+
// .push(`.then((response)=>{
48+
// console.log(response)
49+
// })`)
50+
// .push(`.catch((error)=>{
51+
// console.log(error)
52+
// })`)
5053

5154
//TODO implement params
5255
// if (Object.keys(source.queryObj).length) {

0 commit comments

Comments
 (0)