Skip to content

Commit cb3a236

Browse files
authored
Update README.md
1 parent 2fa7c8d commit cb3a236

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ npx jscodeshift -t asyncify/index.js path/to/your/project/**/*.js
2121

2222
| | `asyncify` |
2323
| ------------------------------------------------------------------ | ---------- |
24+
| `.then` ||
25+
| `.catch` ||
26+
| `.finally` ||
2427
| Renames identifiers in handlers that would conflict ||
2528
| Converts promise chains that aren't returned/awaited into IIAAFs ||
2629
| 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 |
2832
| **Refactoring/inlining handlers that contain conditional returns** | |
2933
| All but one if/else/switch branch return ||
3034
| All branches return, even nested ones ||

0 commit comments

Comments
 (0)