feat: wrapped all promises functions recursively recursively to the root prototype #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes updates to the
nuxt-use-async-data-wrapper
package to improve the handling of asynchronous data fetching and enhance the documentation. The most significant changes involve updating the status handling in the README examples and improving the function name extraction in the main library file.Updates to status handling:
readme.md
: Replaced thepending
state with astatus
state in all examples to provide a more descriptive representation of the asynchronous operation's state. [1] [2] [3] [4]Improvements to function name extraction:
src/index.ts
: Improved the function name extraction logic to include functions from the object's prototype chain, ensuring all relevant functions are wrapped.Version update:
package.json
: Updated the version from1.1.0
to1.2.0
to reflect the new changes and improvements.Type definition update:
src/index.ts
: Updated theAsyncDataResult
type definition to replacepending
withstatus
for better clarity.