You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since it's a straightforward change (as far as I can tell), I'd like to work on providing an alternative synchronous API for this lib.
This would mean keeping the async API as-is:
transform
toJson
prettyPrint
The new API would provide the new sync functions:
transformSync
toJsonSync
prettyPrintSync
My proposal will most probably involve refactoring the async calls so that they return a Promise that wraps up a call to their corresponding sync alternative (since that's what's done currently). This change should be backwards compatible.
The text was updated successfully, but these errors were encountered:
Since it's a straightforward change (as far as I can tell), I'd like to work on providing an alternative synchronous API for this lib.
This would mean keeping the async API as-is:
transform
toJson
prettyPrint
The new API would provide the new sync functions:
transformSync
toJsonSync
prettyPrintSync
My proposal will most probably involve refactoring the async calls so that they return a
Promise
that wraps up a call to their corresponding sync alternative (since that's what's done currently). This change should be backwards compatible.The text was updated successfully, but these errors were encountered: