File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,14 @@ npx jscodeshift -t asyncify/index.js path/to/your/project/**/*.js
21
21
22
22
| | ` asyncify ` |
23
23
| ------------------------------------------------------------------ | ---------- |
24
+ | ` .then ` | ✅ |
25
+ | ` .catch ` | ✅ |
26
+ | ` .finally ` | ✅ |
24
27
| Renames identifiers in handlers that would conflict | ✅ |
25
28
| Converts promise chains that aren't returned/awaited into IIAAFs | ✅ |
26
29
| Converts ` return Promise.resolve() ` /` return Promise.reject() ` | ✅ |
27
- | Warns when the original function could return/throw a non-promise | ✅ |
30
+ | Removes unnecessary ` Promise.resolve() ` wrappers | ✅ |
31
+ | Warns when the original function could return/throw a non-promise | Planned |
28
32
| ** Refactoring/inlining handlers that contain conditional returns** | |
29
33
| All but one if/else/switch branch return | ✅ |
30
34
| All branches return, even nested ones | ✅ |
You can’t perform that action at this time.
0 commit comments