File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ yarn add better-async-await.macro --dev
43
43
## ⭐ Usage
44
44
45
45
``` javascript
46
- import betterAsyncAwait ' better-async-await.macro' ;
46
+ import betterAsyncAwait from ' better-async-await.macro' ;
47
47
48
48
async function test () {
49
49
const [err , resp ] = await betterAsyncAwait (api .getData (5 ));
@@ -99,7 +99,7 @@ async function completeApplicationFlow() {
99
99
> Approach with this macro and different way of doing this could be:-
100
100
101
101
``` javascript
102
- import betterAsyncAwait ' better-async-await.macro' ;
102
+ import betterAsyncAwait from ' better-async-await.macro' ;
103
103
104
104
async function completeApplicationFlow () {
105
105
// wait for get session status api to check the status
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " better-async-await.macro" ,
3
3
"description" : " Write async await statements in a go lang type fashion with no try catch statements" ,
4
- "version" : " 1.0.0 " ,
4
+ "version" : " 1.0.1 " ,
5
5
"engines" : {
6
6
"node" : " >=8.9.0"
7
7
},
You can’t perform that action at this time.
0 commit comments