-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite errorResponse, and add a way to inject server into plugin #40
Conversation
- update dependencies
- add getServer type
- add type needRequestIP - edit getserver for support only need requestIP function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
several changes needed, nice pr tho
Add export default configfor use default config as global config Readmelike i said, I don't know how to make it simplify. |
@rayriffy อ้าว คนไทยนี่ |
* - add update all dependencies ( using pnpm ) - update dependencies * - remove cache bun.lockb * - add using server - add getServer type * better getServer ? * change get server to using object store server * - add throw error when rate-limit reached - add type needRequestIP - edit getserver for support only need requestIP function * add getServer Docs * add throwOnError Docs * export default option * fix for #40 (review) * update dependencies * add default options use as global option in example * fix: export variable name as-is * refactor: grouping if condition * refactor: errorResponse * chore: regenerate lockfile * refactor: getServer -> injectServer * docs: changeset * fix: redundant typeof check * Version Packages * change type inject Server return value to server or null * update dependencies * fix #42 * update dependencies * app.server null fixed * docs: typo * feat: changeset * update dependencies * fix rate limit not working * add script run multiInstanceInjected file * change scope * fix: scoping * fix: typo --------- Co-authored-by: Phumrapee Limpianchop <git@rayriffy.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Add get server
function for plugin can get server instance
Example on readme
This option can fix problem like this => #29
and make you can work with multiple route instance.
Add throw on error
Throw error when rate-limit reached
Example on readme
Add git ignore file type
To ignore all lock file
Add update all Dependencies ( using
pnpm
)Change scoping type to
LifeCycleType
Add
NeedRequestIP
typeThis type just make sure server instance have
requestIP
function